Closed Bug 1304469 Opened 8 years ago Closed 8 years ago

hg wip should exclude all old esrs

Categories

(Developer Services :: Mercurial: configwizard, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Gijs, Assigned: Gijs)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

Nobody cares about esr10-38 when looking at hg wip.
Comment on attachment 8793447 [details] Bug 1304469 - ignore old esr versions in 'hg wip' alias, https://reviewboard.mozilla.org/r/80184/#review79732 I'm not a super huge fan of making `hg wip` Mozilla centric. But I agree this is an improvement for most developers. So r+. Thank you for improving things. FWIW, we're trying to add an official Mercurial command to do what `hg wip` is doing today. We already considered the case of ignoring heads older than N days. Maybe we also need the ability to ignore a user-defined revset.
Attachment #8793447 - Flags: review?(gps) → review+
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/6bee91118fe1 ignore old esr versions in 'hg wip' alias, r=gps
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
I had to back this out because it broke non-Firefox repos with "abort: unknown revision 'esr10'!" :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Backout by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/f15b587920ec Backed out changeset 6bee91118fe1 for breaking `hg wip` on non-Firefox repo
(In reply to Gregory Szorc [:gps] from comment #4) > I had to back this out because it broke non-Firefox repos with "abort: > unknown revision 'esr10'!" :( Is there a usable way around this? What are these aliases added by firefoxtree, anyway? Are they revsets or bookmarks or something else? Is there a different ("failsafe") way to test for them? Or could we use the "older than N days" thing to test for them, assuming they're basically dead at this point?
Flags: needinfo?(gps)
Those labels are bookmarks on the mozilla-unified repo. But if you have firefoxtree enabled, they are converted to a separate "namespace" which is managed by firefoxtree and is read-only. You can select these revisions via `hg log -r 'named(fxtree)'`. But for some reason that's not working (bug in firefoxtree or mercurial). firefoxtree does have a 'fxheads()' revset that predates Mercurial's "namespace" support and that does work. So we could filter out revisions by doing something like the following: X - (fxheads() - date(-90)) X - (public() - date(-90))
Flags: needinfo?(gps)
Used the fxheads thing, which seems to work. mozreview and re-requesting review is painful, if this looks OK can you re-autoland? Thanks.
Flags: needinfo?(gps)
Comment on attachment 8793447 [details] Bug 1304469 - ignore old esr versions in 'hg wip' alias, https://reviewboard.mozilla.org/r/80184/#review80352 This looks good. Something else I thought of: this will cause problems for people that don't have firefoxtrees enabled globally. We can cross that bridge if people complain.
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/7721ac703c18 ignore old esr versions in 'hg wip' alias, r=gps
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Flags: needinfo?(gps)
Regressions: 1627229
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: