Mercurial > evolve
diff hgext3rd/evolve/obshistory.py @ 3483:f03845bfd015 stable
compat: add wrapper for logcmdutil functions
These classes and functions were bulk-renamed at hg c8e2d6ed1f9e.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 05 Feb 2018 20:58:46 +0900 |
parents | b96568036837 |
children | 6d180db0e3e8 |
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py Mon Jan 29 17:32:08 2018 +0100 +++ b/hgext3rd/evolve/obshistory.py Mon Feb 05 20:58:46 2018 +0900 @@ -10,7 +10,6 @@ import re from mercurial import ( - cmdutil, commands, error, graphmod, @@ -97,7 +96,7 @@ revs.reverse() _debugobshistoryrevs(ui, repo, revs, opts) -class obsmarker_printer(cmdutil.changeset_printer): +class obsmarker_printer(compat.changesetprinter): """show (available) information about a node We display the node, description (if available) and various information @@ -356,7 +355,7 @@ displayer = obsmarker_printer(ui, repo.unfiltered(), matchfn, opts, buffered=True) edges = graphmod.asciiedges walker = _obshistorywalker(repo.unfiltered(), revs, opts.get('all', False)) - cmdutil.displaygraph(ui, repo, walker, displayer, edges) + compat.displaygraph(ui, repo, walker, displayer, edges) def _debugobshistoryrevs(ui, repo, revs, opts): """ Display the obsolescence history for revset