Mercurial > hg
diff mercurial/cmdutil.py @ 35888:c8e2d6ed1f9e
cmdutil: drop aliases for logcmdutil functions (API)
.. api::
Log-related utility functions has been renamed as follows:
- cmdutil.loglimit -> logcmdutil.getlimit
- cmdutil.diffordiffstat -> logcmdutil.diffordiffstat
- cmdutil._changesetlabels -> logcmdutil.changesetlabels
- cmdutil.changeset_printer -> logcmdutil.changesetprinter
- cmdutil.jsonchangeset = logcmdutil.jsonchangeset
- cmdutil.changeset_templater -> logcmdutil.changesettemplater
- cmdutil.logtemplatespec -> logcmdutil.templatespec
- cmdutil.makelogtemplater -> logcmdutil.maketemplater
- cmdutil.show_changeset -> logcmdutil.changesetdisplayer
- cmdutil.getlogrevs -> logcmdutil.getrevs
- cmdutil.getloglinerangerevs -> logcmdutil.getlinerangerevs
- cmdutil.displaygraph -> logcmdutil.displaygraph
- cmdutil.graphlog -> logcmdutil.graphlog
- cmdutil.checkunsupportedgraphflags -> logcmdutil.checkunsupportedgraphflags
- cmdutil.graphrevs -> logcmdutil.graphrevs
- cmdutil._makenofollowlogfilematcher -> logcmdutil._makenofollowfilematcher
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jan 2018 13:03:03 +0900 |
parents | 572f36e9a780 |
children | 72de5c504833 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Jan 21 12:48:39 2018 +0900 +++ b/mercurial/cmdutil.py Sun Jan 21 13:03:03 2018 +0900 @@ -46,22 +46,6 @@ ) stringio = util.stringio -loglimit = logcmdutil.getlimit -diffordiffstat = logcmdutil.diffordiffstat -_changesetlabels = logcmdutil.changesetlabels -changeset_printer = logcmdutil.changesetprinter -jsonchangeset = logcmdutil.jsonchangeset -changeset_templater = logcmdutil.changesettemplater -logtemplatespec = logcmdutil.templatespec -makelogtemplater = logcmdutil.maketemplater -show_changeset = logcmdutil.changesetdisplayer -getlogrevs = logcmdutil.getrevs -getloglinerangerevs = logcmdutil.getlinerangerevs -displaygraph = logcmdutil.displaygraph -graphlog = logcmdutil.graphlog -checkunsupportedgraphflags = logcmdutil.checkunsupportedgraphflags -graphrevs = logcmdutil.graphrevs - # templates of common command options dryrunopts = [ @@ -2526,7 +2510,7 @@ def buildcommittemplate(repo, ctx, subs, extramsg, ref): ui = repo.ui spec = formatter.templatespec(ref, None, None) - t = changeset_templater(ui, repo, spec, None, {}, False) + t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False) t.t.cache.update((k, templater.unquotestring(v)) for k, v in repo.ui.configitems('committemplate'))