Mercurial > public > mercurial-scm > hg-stable
diff mercurial/logcmdutil.py @ 43796:faa8a59f4a06
graphlog: change state dict to attr struct
This should help static analysis.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 21 Nov 2019 22:43:01 +0900 |
parents | 064c9a4ced4a |
children | 29adf0a087a1 |
line wrap: on
line diff
--- 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)