[Updated] D9244: histedit: drop fallback to empty string from rendertemplate()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Oct 29 02:03:04 UTC 2020
Closed by commit rHG024fdba1417b: histedit: drop fallback to empty string from rendertemplate() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9244?vs=23296&id=23346
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9244/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9244
AFFECTED FILES
hgext/histedit.py
CHANGE DETAILS
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -525,11 +525,8 @@
"""
ctx = self.repo[self.node]
ui = self.repo.ui
- summary = (
- cmdutil.rendertemplate(
- ctx, ui.config(b'histedit', b'summary-template')
- )
- or b''
+ summary = cmdutil.rendertemplate(
+ ctx, ui.config(b'histedit', b'summary-template')
)
summary = summary.splitlines()[0]
line = b'%s %s %s' % (self.verb, ctx, summary)
@@ -1152,11 +1149,8 @@
@util.propertycache
def desc(self):
- summary = (
- cmdutil.rendertemplate(
- self.ctx, self.ui.config(b'histedit', b'summary-template')
- )
- or b''
+ summary = cmdutil.rendertemplate(
+ self.ctx, self.ui.config(b'histedit', b'summary-template')
)
if summary:
return summary
To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20201029/65cbd498/attachment-0002.html>
More information about the Mercurial-patches
mailing list