Closed Bug 1234927 Opened 8 years ago Closed 8 years ago

Add fxheads to `wip` set up from |mach mercurial-setup|

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: ahal, Unassigned)

Details

Attachments

(1 file)

Recently the firefoxtree extension stopped saving local tags, instead relying on namespace metadata. This meant that it stopped showing up in the |hg wip| command that gets set up by |mach mercurial-setup|.

We should add a new label for fxheads so they show up again.
Attachment #8701595 - Flags: review?(gps) → review+
Comment on attachment 8701595 [details]
MozReview Request: Bug 1234927 - Display fxheads in |hg wip| alias, r=gps

https://reviewboard.mozilla.org/r/28991/#review25819

FWIW, I started a thread on the mercurial-devel list about potentially adding {names} or something similar so we don't have to deal with every namespace as a one off.

::: tools/mercurial/hgsetup/config.py:257
(Diff revision 1)
> +            '{label("log.fxtree", if(fxheads," {fxheads}"))} '

Let's use log.bookmark here because we can't expect people to have this label defined.
I'm not 100% sure how namespaces work, but isn't the log.fxtree label defined by firefoxtree? This patch works as is for me, both with and without firefoxtree installed. Just without firefoxtree, fxheads don't get displayed in `hg wip` which seems like the correct behaviour.

Or do you mean for purposes of colorization? If that's the case I'd prefer log.tag over log.bookmark.
label() is used for colorization. We should not invent a new label for this usage.
Makes sense. I'll switch it to log.tag then, as they act more like tags than bookmarks.
Comment on attachment 8701595 [details]
MozReview Request: Bug 1234927 - Display fxheads in |hg wip| alias, r=gps

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28991/diff/1-2/
https://hg.mozilla.org/mozilla-central/rev/967b246b56b2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: