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

Brendan Cully brendan at kublai.com
Mon Jun 11 19:16:02 CDT 2007


On Monday, 11 June 2007 at 18:13, Matt Mackall wrote:
> 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'.

Why do we even need the -b flag? Why not just make *args be revisions,
whose branch heads would be displayed. I can't think of any other
argument hg heads might take, and it saves a bit of typing.


More information about the Mercurial-devel mailing list