[PATCH 4 of 6] Add option to heads to show only heads for current branch

Matt Mackall mpm at selenic.com
Mon Jun 11 18:13:52 CDT 2007


On Mon, Jun 11, 2007 at 03:56:49PM -0700, Eric Hopper wrote:
> On 6/10/07, Matt Mackall <mpm at selenic.com> wrote:
> >
> >On Thu, Jun 07, 2007 at 03:58:19PM -0700, Eric Hopper wrote:
> >> # HG changeset patch
> >> # User Eric Hopper <hopper at omnifarious.org>
> >> # Date 1181256556 25200
> >> # Node ID 8fe2e9aaed51002c4d4746a3664d23feb74d1044
> >> # Parent  7f10f536f11273b87721bf9e6ce83018f179ed50
> >> Add option to heads to show only heads for current branch.
> >>
> >> +          ('b', 'branch', None, _("show even inactive heads for just
> >the current branch")),
> >
> >Hmm, I thought we were going to do:
> >
> >hg heads -b foo  # show branch heads of branch foo
> 
> 
> That won't be that hard, but I would prefer not to do that until someone can
> come up with a shorthand for 'current branch'.

How about .?

In other words report the heads of the branch corresponding to the
specified revision. Where '.' means 'the revision of the working
directory'.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial-devel mailing list