# HG changeset patch # User Anton Shestakov # Date 1583924790 -25200 # Node ID 35c15057e2e5ff0c1c5ad5e2837a168b23ae52b4 # Parent 372dc6c5692a944110d627a05270d8d50ff72ca5 obshistory: rename graph/revs-displaying functions Same idea as the previous patch, but with a "display" prefix. diff -r 372dc6c5692a -r 35c15057e2e5 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))