[PATCH] graphlog: add glog --ancestors to see paths to common ancestor

Sune Foldager cryo at cyanite.org
Wed Apr 7 05:48:14 CDT 2010


On 07-04-2010 11:14, Peter Arrenbrecht wrote:
> On Wed, Apr 7, 2010 at 11:12 AM, Peter Arrenbrecht
> <peter.arrenbrecht at gmail.com>  wrote:
>> # HG changeset patch
>> # User Peter Arrenbrecht<peter.arrenbrecht at gmail.com>
>> # Date 1270631547 -7200
>> graphlog: add glog --ancestors to see paths to common ancestor
>
> Second patch is better. A line was too long. (Still need to get used
> to running check-code.py...)

Pretty nice... I have an idea, though, which would also unify the 
feature with hg log:

-a  takes a number of nodes and shows the entire ancestor graph of those 
nodes, not stopping at common ancestor. This is somewhat like hg log -fr 
node:0 for a single node.

-A  same, but stops at common ancestor. takes one merge node or two 
nodes. Pretty much what your -a does now.

Or vice versa. This would also provide the most useful aspect of the 
missing -f functionality to glog IMO. -f could perhaps be provided as well?

Both -a and -A are free for log and glog.

/Sune


More information about the Mercurial-devel mailing list