Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35887:572f36e9a780 | 35888:c8e2d6ed1f9e |
---|---|
43 templater, | 43 templater, |
44 util, | 44 util, |
45 vfs as vfsmod, | 45 vfs as vfsmod, |
46 ) | 46 ) |
47 stringio = util.stringio | 47 stringio = util.stringio |
48 | |
49 loglimit = logcmdutil.getlimit | |
50 diffordiffstat = logcmdutil.diffordiffstat | |
51 _changesetlabels = logcmdutil.changesetlabels | |
52 changeset_printer = logcmdutil.changesetprinter | |
53 jsonchangeset = logcmdutil.jsonchangeset | |
54 changeset_templater = logcmdutil.changesettemplater | |
55 logtemplatespec = logcmdutil.templatespec | |
56 makelogtemplater = logcmdutil.maketemplater | |
57 show_changeset = logcmdutil.changesetdisplayer | |
58 getlogrevs = logcmdutil.getrevs | |
59 getloglinerangerevs = logcmdutil.getlinerangerevs | |
60 displaygraph = logcmdutil.displaygraph | |
61 graphlog = logcmdutil.graphlog | |
62 checkunsupportedgraphflags = logcmdutil.checkunsupportedgraphflags | |
63 graphrevs = logcmdutil.graphrevs | |
64 | 48 |
65 # templates of common command options | 49 # templates of common command options |
66 | 50 |
67 dryrunopts = [ | 51 dryrunopts = [ |
68 ('n', 'dry-run', None, | 52 ('n', 'dry-run', None, |
2524 return text | 2508 return text |
2525 | 2509 |
2526 def buildcommittemplate(repo, ctx, subs, extramsg, ref): | 2510 def buildcommittemplate(repo, ctx, subs, extramsg, ref): |
2527 ui = repo.ui | 2511 ui = repo.ui |
2528 spec = formatter.templatespec(ref, None, None) | 2512 spec = formatter.templatespec(ref, None, None) |
2529 t = changeset_templater(ui, repo, spec, None, {}, False) | 2513 t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False) |
2530 t.t.cache.update((k, templater.unquotestring(v)) | 2514 t.t.cache.update((k, templater.unquotestring(v)) |
2531 for k, v in repo.ui.configitems('committemplate')) | 2515 for k, v in repo.ui.configitems('committemplate')) |
2532 | 2516 |
2533 if not extramsg: | 2517 if not extramsg: |
2534 extramsg = '' # ensure that extramsg is string | 2518 extramsg = '' # ensure that extramsg is string |