"--rev x" also matches against the short node number
Jan Olsen
janpolsen at gmail.com
Tue May 24 17:39:07 UTC 2011
Hi
When I make a "hg log --rev *x*", where *x* is a revision number, then I
would have expected to only give me the log from exactly that revision
number.
It does however seem to also match against the short node number. The
following all give the same result:
The-Big-Devil:test janpolsen$ *hg --version
> *Mercurial Distributed SCM (version 1.8.3+20110502)
> The-Big-Devil:test janpolsen$ *hg log*
> changeset: 0:72ab0071a9d7
> tag: tip
> user: janpolsen
> date: Tue May 24 19:10:17 2011 +0200
> summary: initial commit
>
> The-Big-Devil:test janpolsen$ *hg log -r0*
> changeset: 0:72ab0071a9d7
> tag: tip
> user: janpolsen
> date: Tue May 24 19:10:17 2011 +0200
> summary: initial commit
>
> The-Big-Devil:test janpolsen$ *hg log -r7*
> 'changeset: 0:72ab0071a9d7
> tag: tip
> user: janpolsen
> date: Tue May 24 19:10:17 2011 +0200
> summary: initial commit
>
> The-Big-Devil:test janpolsen$ *hg log -r72*
> changeset: 0:72ab0071a9d7
> tag: tip
> user: janpolsen
> date: Tue May 24 19:10:17 2011 +0200
> summary: initial commit
>
> The-Big-Devil:test janpolsen$ *hg log -r72ab0071a9d7*
> changeset: 0:72ab0071a9d7
> tag: tip
> user: janpolsen
> date: Tue May 24 19:10:17 2011 +0200
> summary: initial commit
>
If this behaviour is intentional, is there then a way where I can make sure
it's only the revision number I look at and not the short node number?
Best regards
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110524/fff62013/attachment.html>
More information about the Mercurial
mailing list