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

Eric Hopper hopper at omnifarious.org
Mon Jun 18 21:50:33 CDT 2007


On Sun, Jun 17, 2007 at 02:29:56PM +0200, Thomas Arendsen Hein wrote:
> > +         _('hg heads [-r REV] [REV]...')),
> 
> This is too confusing.
> 
> So if I say "hg heads -r foo" I get the global heads descending from
> the foo branch's tip?
> 
> Otherwise I really want to have this feature, just in a
> non-confusing way :)

I'm not sure about the '-r' option at all anymore.  I assume it was
created in order to make the old branch method (tag the base) work
well.  Then you could get the heads in the branch by doing:

hg heads -r branchtag

So, perhaps the -r option ought to be eliminated completely now.  I can
see how it might be useful when you're trying to figure out which
revision you want to 'hg strip' to remove a particular head but no
others.  But other than that I can't think why the '-r' option would be
useful anymore.

As it is, it's meaning is quite confusing, especially since all the
other arguments are revisions too.  It's hard to understand exactly
what's different about the revision specified by -r from all the others.

What it is is a base revision that any output must be a child of.

Have fun (if at all possible),
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070618/5b46214b/attachment.pgp 


More information about the Mercurial-devel mailing list