Numerical branch name interpreted as a cset number
Matt Mackall
mpm at selenic.com
Sat Dec 10 04:22:28 UTC 2011
On Fri, 2011-12-09 at 19:08 -0800, Tom Fox wrote:
> 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()'"
heads
^
"head()"
Changeset is a named branch head.
"heads(set)"
Members of set with no children in set.
But you're right, that doesn't work in 1.7.5, and has since been fixed.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list