mercurial/logcmdutil.py
changeset 43776 faa8a59f4a06
parent 43774 064c9a4ced4a
child 43793 29adf0a087a1
--- a/mercurial/logcmdutil.py	Thu Nov 21 22:52:23 2019 +0900
+++ b/mercurial/logcmdutil.py	Thu Nov 21 22:43:01 2019 +0900
@@ -1012,7 +1012,7 @@
     props = props or {}
     formatnode = _graphnodeformatter(ui, displayer)
     state = graphmod.asciistate()
-    styles = state[b'styles']
+    styles = state.styles
 
     # only set graph styling if HGPLAIN is not set.
     if ui.plain(b'graph'):
@@ -1033,7 +1033,7 @@
                 styles[key] = None
 
         # experimental config: experimental.graphshorten
-        state[b'graphshorten'] = ui.configbool(b'experimental', b'graphshorten')
+        state.graphshorten = ui.configbool(b'experimental', b'graphshorten')
 
     for rev, type, ctx, parents in dag:
         char = formatnode(repo, ctx)