Mercurial > evolve
changeset 5255:35c15057e2e5
obshistory: rename graph/revs-displaying functions
Same idea as the previous patch, but with a "display" prefix.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 11 Mar 2020 18:06:30 +0700 |
parents | 372dc6c5692a |
children | f5d9b5771b45 |
files | hgext3rd/evolve/obshistory.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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))