obshistory: rename graph/revs-displaying functions
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 11 Mar 2020 18:06:30 +0700
changeset 5301 35c15057e2e5
parent 5300 372dc6c5692a
child 5302 f5d9b5771b45
obshistory: rename graph/revs-displaying functions Same idea as the previous patch, but with a "display" prefix.
hgext3rd/evolve/obshistory.py
--- 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))