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

Thomas Arendsen Hein thomas at intevation.de
Wed Jun 6 02:53:12 CDT 2007


* Eric Hopper <hopper at omnifarious.org> [20070606 05:24]:
> # HG changeset patch
> # User Eric Hopper <hopper at omnifarious.org>
> # Date 1181098447 25200
> # Node ID 2b43d4e96d9ca28382a182fc90e86b9310453687
> # Parent  69f6cc3ee7ac38841e2875986fcb22b74d5d52c3
> Add option to heads to show only heads for current branch.

What about an option common for many commands (maybe a global
option) that will restrict those commands to the currently selected
branch?

hg heads -? will show heads for the current branch only
hg tip -? will show the newest revision for the current branch
hg log -? will show the log for the current branch
what else?

"hg foo -r `hg branch`" already can do this for heads and log, maybe
we just need an alias for the current branch, something like '.' for
the current parent. Maybe '@'?

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- 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/20070606/7e9053e7/attachment.pgp 


More information about the Mercurial-devel mailing list