--- a/hgext3rd/evolve/obshistory.py Wed Mar 11 18:03:52 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py Wed Mar 11 18:06:30 2020 +0700
@@ -97,10 +97,10 @@
opts['template'] = DEFAULT_TEMPLATE
if opts['graph']:
- return _debugobshistorygraph(ui, repo, revs, opts)
+ return displaygraph(ui, repo, revs, opts)
revs.reverse()
- _debugobshistoryrevs(ui, repo, revs, opts)
+ displayrevs(ui, repo, revs, opts)
TEMPLATE_MISSING_NODE = b"""{label("evolve.node evolve.missing_change_ctx", node|short)}"""
TEMPLATE_PRESENT_NODE = b"""{label("evolve.node", node|short)} {label("evolve.rev", "({rev})")} {label("evolve.short_description", desc|firstline)}"""
@@ -427,7 +427,7 @@
return sorted(seen), nodesucc, nodeprec
-def _debugobshistorygraph(ui, repo, revs, opts):
+def displaygraph(ui, repo, revs, opts):
displayer = obsmarker_printer(ui, repo.unfiltered(), obspatch=True,
diffopts=pycompat.byteskwargs(opts),
@@ -437,7 +437,7 @@
opts.get('filternonlocal', False))
logcmdutil.displaygraph(ui, repo, walker, displayer, edges)
-def _debugobshistoryrevs(ui, repo, revs, opts):
+def displayrevs(ui, repo, revs, opts):
""" Display the obsolescence history for revset
"""
fm = ui.formatter(b'debugobshistory', pycompat.byteskwargs(opts))