[Updated] D8848: templatespec: use new factory functions in logcmdutil
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Aug 2 16:34:35 UTC 2020
Closed by commit rHGc1915cfa8080: templatespec: use new factory functions in logcmdutil (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8848?vs=22152&id=22189
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8848/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8848
AFFECTED FILES
mercurial/logcmdutil.py
CHANGE DETAILS
diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -620,7 +620,7 @@
if not tmpl and not style: # template are stronger than style
tmpl = ui.config(b'ui', b'logtemplate')
if tmpl:
- return templatespec(templater.unquotestring(tmpl), None)
+ return formatter.literal_templatespec(templater.unquotestring(tmpl))
else:
style = util.expandpath(ui.config(b'ui', b'style'))
@@ -632,7 +632,7 @@
) or templater.templatepath(mapfile)
if mapname:
mapfile = mapname
- return templatespec(None, mapfile)
+ return formatter.mapfile_templatespec(b'changeset', mapfile)
return formatter.lookuptemplate(ui, b'changeset', tmpl)
@@ -640,7 +640,7 @@
def maketemplater(ui, repo, tmpl, buffered=False):
"""Create a changesettemplater from a literal template 'tmpl'
byte-string."""
- spec = templatespec(tmpl, None)
+ spec = formatter.literal_templatespec(tmpl)
return changesettemplater(ui, repo, spec, buffered=buffered)
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200802/ad41ef91/attachment-0002.html>
More information about the Mercurial-patches
mailing list