Closed Bug 1377081 Opened 8 years ago Closed 8 years ago

Pruning an fxtree-labeled head breaks `fxheads` and thereby `hg wip` (fxheads() doesn't seem to care if revisions are hidden)

Categories

(Developer Services :: Mercurial: firefoxtree, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Gijs, Assigned: gps)

Details

Attachments

(2 files)

STR: 1. pull mozilla-unified with firefoxtree enabled 2. pull autoland manually because you need to rebase something so it can land 3. prune all pulled autoland revisions with something like 'hg prune -r 409717::.' 4. run 'hg wip' ER: tree output as usual AR: abort: unknown revision 'ed1964e4da87a8d44b81c3e8ce2e88da8309af79'! Similarly: hg log -r 'fxheads()' also returns this error.
FWIW, just re-pulling mozilla-unified doesn't help.
Workaround: rm .hg/firefoxtrees hg pull (Or, presumably, selectively removing the cached head ref in there.) But I had to go spelunking into the code for this, and it seems the docs are out of date because they still say that the code uses tags (which would be manipulable with 'normal' hg commands), which it isn't.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #8886742 - Flags: review?(glob) → review+
Attachment #8886743 - Flags: review?(glob) → review+
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/d2c8fc483da2 firefoxtree: add test for unknown revision ; r=glob https://hg.mozilla.org/hgcustom/version-control-tools/rev/49edbf24215b firefoxtree: ignore unknown revisions ; r=glob
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: