[PATCH] keyword: split line continuation in 2 steps (style)

Christian Ebert blacktrash at gmx.net
Fri Feb 1 03:42:50 CST 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1201858947 -3600
# Node ID 6967f342cbb4f9b2c45766a5a3169bdd4d2a6bf9
# Parent  31726c27e40e59cedfdf2143c5c4c265e0e346f6
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