[PATCH] A small enhancement to graphlog to show closed branches
Steve Borho
steve at borho.org
Tue Mar 12 14:57:27 CDT 2013
On Tue, Mar 12, 2013 at 11:23 AM, Pierre-Yves David <
pierre-yves.david at logilab.fr> wrote:
> 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.
>
'_' jives with how TortoiseHg visualizes branch closing commits, fwiw.
--
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130312/f71573cd/attachment.html>
More information about the Mercurial-devel
mailing list