Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 35993:386c1e45e671
logcmdutil: drop default arguments from changesetdisplayer/templater() calls
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jan 2018 14:28:03 +0900 |
parents | 264b90a060b7 |
children | 55e8efa2451a |
comparison
equal
deleted
inserted
replaced
35992:64f4a6808704 | 35993:386c1e45e671 |
---|---|
2499 return text | 2499 return text |
2500 | 2500 |
2501 def buildcommittemplate(repo, ctx, subs, extramsg, ref): | 2501 def buildcommittemplate(repo, ctx, subs, extramsg, ref): |
2502 ui = repo.ui | 2502 ui = repo.ui |
2503 spec = formatter.templatespec(ref, None, None) | 2503 spec = formatter.templatespec(ref, None, None) |
2504 t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False) | 2504 t = logcmdutil.changesettemplater(ui, repo, spec) |
2505 t.t.cache.update((k, templater.unquotestring(v)) | 2505 t.t.cache.update((k, templater.unquotestring(v)) |
2506 for k, v in repo.ui.configitems('committemplate')) | 2506 for k, v in repo.ui.configitems('committemplate')) |
2507 | 2507 |
2508 if not extramsg: | 2508 if not extramsg: |
2509 extramsg = '' # ensure that extramsg is string | 2509 extramsg = '' # ensure that extramsg is string |