mercurial/cmdutil.py
changeset 27214 60af96494a76
parent 27213 ccae1588117f
child 27216 8117e2cd959e
--- 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 = []