Mercurial > hg
comparison hgext/churn.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 | 26ed66ab1e72 |
children | e9bcc2efb7e8 |
comparison
equal
deleted
inserted
replaced
35887:572f36e9a780 | 35888:c8e2d6ed1f9e |
---|---|
16 | 16 |
17 from mercurial.i18n import _ | 17 from mercurial.i18n import _ |
18 from mercurial import ( | 18 from mercurial import ( |
19 cmdutil, | 19 cmdutil, |
20 encoding, | 20 encoding, |
21 logcmdutil, | |
21 patch, | 22 patch, |
22 pycompat, | 23 pycompat, |
23 registrar, | 24 registrar, |
24 scmutil, | 25 scmutil, |
25 util, | 26 util, |
52 t, tz = ctx.date() | 53 t, tz = ctx.date() |
53 date = datetime.datetime(*time.gmtime(float(t) - tz)[:6]) | 54 date = datetime.datetime(*time.gmtime(float(t) - tz)[:6]) |
54 return date.strftime(opts['dateformat']) | 55 return date.strftime(opts['dateformat']) |
55 else: | 56 else: |
56 tmpl = opts.get('oldtemplate') or opts.get('template') | 57 tmpl = opts.get('oldtemplate') or opts.get('template') |
57 tmpl = cmdutil.makelogtemplater(ui, repo, tmpl) | 58 tmpl = logcmdutil.maketemplater(ui, repo, tmpl) |
58 def getkey(ctx): | 59 def getkey(ctx): |
59 ui.pushbuffer() | 60 ui.pushbuffer() |
60 tmpl.show(ctx) | 61 tmpl.show(ctx) |
61 return ui.popbuffer() | 62 return ui.popbuffer() |
62 | 63 |