mercurial/cmdutil.py
changeset 28600 0d6137891114
parent 28570 5508cf9a52fe
child 28601 cd10171d6c71
--- a/mercurial/cmdutil.py	Thu Mar 17 18:32:10 2016 +0000
+++ b/mercurial/cmdutil.py	Sat Mar 19 16:46:15 2016 -0700
@@ -2218,6 +2218,15 @@
                  filematcher=None):
     formatnode = _graphnodeformatter(ui, displayer)
     state = graphmod.asciistate()
+    styles = state['styles']
+    edgetypes = {
+        'parent': graphmod.PARENT,
+        'grandparent': graphmod.GRANDPARENT,
+        'missing': graphmod.MISSINGPARENT
+    }
+    for name, key in edgetypes.items():
+        # experimental config: ui.graphstyle.*
+        styles[key] = ui.config('ui', 'graphstyle.%s' % name, styles[key])
     for rev, type, ctx, parents in dag:
         char = formatnode(repo, ctx)
         copies = None