[Bug 5850] New: hg id --template {node} prints strange node
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Mon Apr 23 20:03:26 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5850
Bug ID: 5850
Summary: hg id --template {node} prints strange node
Product: Mercurial
Version: 4.5.2
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: vgatien-baron at janestreet.com
CC: mercurial-devel at mercurial-scm.org
I expect passing "-r ." to "hg id" and not passing a "-r" flag to be
equivalent, except perhaps the "+" is the status is unclean (the documentation
says "identify the working directory or specified revision").
But I observe this instead on all versions >= 4.3 (ie since hg id supports
--template, which is great btw, I wish this change had been documented in the
changelog):
$ ./hg id --template '{node}\n'
ffffffffffffffffffffffffffffffffffffffff
$ ./hg id --template '{node}\n' -r .
8bba684efde7f45add05f737952093bb2aa07155
$ hg parent
changeset: 36778:8bba684efde7
branch: stable
tag: 4.5.2
...
$ ./hg version
Mercurial Distributed SCM (version 4.5.2)
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list