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

Matt Mackall mpm at selenic.com
Mon Feb 4 12:08:50 CST 2008


On Mon, 2008-02-04 at 18:58 +0100, Christian Ebert wrote:
> # 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)

And I've queued 2 and 3 too, thanks.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list