Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 27214:60af96494a76
graphlog: extract "graphnode" template keyword that represents node symbol
This provides a default node symbol. Tests will be added later.
"showparents" variable is renamed to "wpnodes" to avoid confusion with the
existing showparents() function.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 14 Nov 2015 16:58:18 +0900 |
parents | ccae1588117f |
children | 8117e2cd959e |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat Nov 14 16:45:15 2015 +0900 +++ b/mercurial/cmdutil.py Sat Nov 14 16:58:18 2015 +0900 @@ -2161,16 +2161,9 @@ def displaygraph(ui, repo, dag, displayer, edgefn, getrenamed=None, filematcher=None): - showparents = [ctx.node() for ctx in repo[None].parents()] seen, state = [], graphmod.asciistate() for rev, type, ctx, parents in dag: - char = 'o' - if ctx.node() in showparents: - char = '@' - elif ctx.obsolete(): - char = 'x' - elif ctx.closesbranch(): - char = '_' + char = templatekw.showgraphnode(repo, ctx) copies = None if getrenamed and ctx.rev(): copies = []