Numerical branch name interpreted as a cset number
mpm at selenic.com
Fri Dec 9 19:06:06 CST 2011
On Fri, 2011-12-09 at 15:47 -0800, Tom Fox wrote:
> Matt Mackall wrote
> > $ hg log -r "branch(111)"
> > changeset: 15632:9125c4e5b3d9
> > branch: 111
> > tag: tip
> > user: Matt Mackall <mpm@>
> > date: Fri Dec 09 17:17:56 2011 -0600
> > summary: silly
> Furthermore, when I attempt to use our most recently installed Mercurial
> (1.7.5), the branch(nnn) syntax works with log, but not with heads. In
> fact, the hg log output shows no changesets on the 111 branch.
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
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial