[Bug 4765] New: hg log fails on hidden revision '0' after pruning the first changeset
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Mon Jul 27 21:36:38 UTC 2015
http://bz.selenic.com/show_bug.cgi?id=4765
Priority: normal
Bug ID: 4765
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg log fails on hidden revision '0' after pruning the
first changeset
Severity: bug
Classification: Unclassified
OS: Mac OS
Reporter: lcharignon at fb.com
Hardware: Macintosh
Status: UNCONFIRMED
Version: stable branch
Component: Mercurial
Product: Mercurial
Steps to repro:
$ # Enable markers creation
$ cd /tmp
$ hg init repo
$ cd repo
$ echo "aa" > a; hg add a; hg commit -m "a"
$ hg prune .
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
working directory now at 000000000000
1 changesets pruned
$ echo "bb" > b; hg add b; hg commit -m "b"
$ hg log
abort: hidden revision '0'!
(use --hidden to access hidden revisions)
The issue is that hg log aborts and it should not, it should show the commit
'b'.
When digging down, the interesting point to dig is the constructor of
changectx. While evaluating the expression, the constructor of changectx is
called with a changeid of 0 and returns a hidden node as opposed to 0.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list