[PATCH 3 of 3] keyword: split line continuation in 2 steps (style)
Christian Ebert
blacktrash at gmx.net
Mon Feb 4 11:58:10 CST 2008
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1202146056 -3600
# Node ID 4740c35aacf0de4354744b50339c0486876c7891
# Parent 99cd0b433b5ddbbad072d70e56181074d8b51a68
keyword: split line continuation in 2 steps (style)
diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -149,8 +149,8 @@
self.ct.use_template(self.templates[kw])
self.ui.pushbuffer()
self.ct.show(changenode=fnode, root=self.repo.root, file=self.path)
- return '$%s: %s $' % (kw, templatefilters.firstline(
- self.ui.popbuffer()))
+ ekw = templatefilters.firstline(self.ui.popbuffer())
+ return '$%s: %s $' % (kw, ekw)
return subfunc(kwsub, data)
More information about the Mercurial-devel
mailing list