Numerical branch name interpreted as a cset number
Tom Fox
foxdropbox at gmail.com
Sat Dec 10 03:08:35 UTC 2011
Matt Mackall wrote
>
> Yep. It took a bit for the revset facility to be supported everywhere.
> In fact, it seems we missed 'hg heads <X>' (though the slightly
> different 'hg heads -r <X>' does work).
>
> But revsets are extremely powerful and render most of log's other
> options redundant (along with all the other commands that show
> changesets). So for instance, you can do:
>
> hg log -r 'heads(branch(111))'
>
> ..though it'd obviously Just Work if you used a less ambiguous branch
> naming scheme.
>
This must have been done after 1.7.5. In 1.7.5, "hg log -r
'head(branch(111))'" does not work. "hg log -r 'branch(111) and head()'"
does work, but it gives me the wrong branch. Again, it would seem to be
using cset 111. What does seem to work is "hg log -b 111 -r "head()". I
guess it might be time to upgrade. :-)
--
View this message in context: http://mercurial.808500.n3.nabble.com/Numerical-branch-name-interpreted-as-a-cset-number-tp3574350p3574703.html
Sent from the General mailing list archive at Nabble.com.
More information about the Mercurial
mailing list