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

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Wed Apr 7 10:23:02 CDT 2010


On Wed, Apr 7, 2010 at 12:48 PM, Sune Foldager <cryo at cyanite.org> wrote:
> 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.

Sounds like a good idea. So if I switch my version to
-A/--common-ancestor, can it go in? I currently don't have the time to
do the full thing. (The quick patch for timeless already took way more
than I thought it would.)

I also have another patch pending that should satisfy timeless_mbp. It
shows only the two nodes and the common ancestor, connected directly
with ... markers when nodes are skipped (--collapse).

-parren


More information about the Mercurial-devel mailing list