[PATCH 1 of 2] log: display closing-branch nodes as "_" (BC)
Jordi Gutiérrez Hermoso
jordigh at octave.org
Tue Nov 25 16:04:42 UTC 2014
On Mon, 2014-11-24 at 15:16 -0800, Pierre-Yves David wrote:
>
> On 11/24/2014 01:48 PM, Jordi Gutiérrez Hermoso wrote:
> > diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
> > --- a/mercurial/cmdutil.py
> > +++ b/mercurial/cmdutil.py
> > @@ -1922,6 +1922,8 @@ def displaygraph(ui, dag, displayer, sho
> > char = '@'
> > elif ctx.obsolete():
> > char = 'x'
> > + elif ctx.closesbranch():
> > + char = '_'
>
> This will probably also trigger for re-opened branches. you should only
> probably restrict this to real closed heads.
I thought about that, but I decided against it. It will be very
obvious graphically when a closing-branch commit gets reopened, and it
would still be nice to see graphically that it was closed and then
reopened.
More information about the Mercurial-devel
mailing list