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

Wesley J. Landaker wjl at icecavern.net
Mon Jun 18 22:11:41 CDT 2007


On Monday 18 June 2007 20:50:33 Eric Hopper wrote:
> On Sun, Jun 17, 2007 at 02:29:56PM +0200, Thomas Arendsen Hein wrote:
> > > +         _('hg heads [-r REV] [REV]...')),
> >
> > This is too confusing.
>
> 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.

If there is a good reason to keep it, maybe '--base' like bundle uses? I'm 
not sure it's the same concept, though. Just a thought.

-- 
Wesley J. Landaker <wjl at icecavern.net> <xmpp:wjl at icecavern.net>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070618/0560dd9b/attachment.pgp 


More information about the Mercurial-devel mailing list