[PATCH] A small enhancement to graphlog to show closed branches
Pierre-Yves David
pierre-yves.david at logilab.fr
Tue Mar 12 11:23:48 CDT 2013
Hi,
the code freeze have been lifted from Feb 1. Considerer sending your patch again
On Fri, Jan 25, 2013 at 10:21:22AM +0100, Henrik Pauli wrote:
> I only have 2.4 at the moment, but I hope it fits in the current code as
> well.
>
> It shows branch closing commits with a _ character instead of the normal
> o character, makes it (in my opinion) easier to see.
> diff -Naurdp mercurial-2.4/mercurial/cmdutil.py mercurial-2.4-closedbranch/mercurial/cmdutil.py
> --- mercurial-2.4/mercurial/cmdutil.py 2012-11-01 22:09:16.000000000 +0100
> +++ mercurial-2.4-closedbranch/mercurial/cmdutil.py 2013-01-25 10:03:09.436240424 +0100
> @@ -1461,6 +1461,8 @@ def displaygraph(ui, dag, displayer, sho
> char = '@'
> elif ctx.obsolete():
> char = 'x'
> + elif ctx.closesbranch():
> + char = '_'
> copies = None
> if getrenamed and ctx.rev():
> copies = []
We currently have:
@ for current working directory parent
x for obsolete changeset
o for normal changeset.
We'll probably need a char for "troubled" changesets too.
I like the idea of having something for closed branch and _ may be a good
candidates.
--
Pierre-Yves David
http://www.logilab.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130312/0ba0335d/attachment.pgp>
More information about the Mercurial-devel
mailing list