[PATCH] graphlog: add special char for public and secret phases

Pierre-Yves David pierre-yves.david at logilab.fr
Wed Jan 18 11:05:04 CST 2012


On Wed, Jan 18, 2012 at 04:57:58PM +0100, alain.leufroy at logilab.fr wrote:
> # HG changeset patch
> # User Alain Leufroy <alain.leufroy at logilab.fr>
> # Date 1326896559 -3600
> # Node ID 43bd418c215edf2a230b3420972a877509157e07
> # Parent  2642ac9d28d1375eb8ca92baafa05c02d59a84c6
> graphlog: add special char for public and secret phases
> 
> diff -r 2642ac9d28d1 -r 43bd418c215e hgext/graphlog.py
> --- a/hgext/graphlog.py	Tue Jan 17 11:08:23 2012 +0100
> +++ b/hgext/graphlog.py	Wed Jan 18 15:22:39 2012 +0100
> @@ -298,7 +298,7 @@
>  def generate(ui, dag, displayer, showparents, edgefn):
>      seen, state = [], asciistate()
>      for rev, type, ctx, parents in dag:
> -        char = ctx.node() in showparents and '@' or 'o'
> +        char = ctx.node() in showparents and '@' or 'Oo.'[ctx.phase()]

. is a terrible marker for a changeset :-/

-- 
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/20120118/0dc395e3/attachment.pgp>


More information about the Mercurial-devel mailing list