[PATCH] Limit line length of convert log messages

Patrick Mézard pmezard at gmail.com
Thu Apr 10 06:46:31 CDT 2008


Frank Kingswood a écrit :
> # HG changeset patch
> # User Frank Kingswood <frank at kingswood-consulting.co.uk>
> # Date 1206565987 0
> # Node ID e1fd124dd3473e4fde6ef62b3a7cb04090feddc2
> # Parent  0231f763ebc8d01133c050afebbc155e3aeb64bc
> Limit line length of convert log messages
> 
> diff -r 0231f763ebc8 -r e1fd124dd347 hgext/convert/convcmd.py
> --- a/hgext/convert/convcmd.py	Wed Mar 26 10:12:10 2008 -0700
> +++ b/hgext/convert/convcmd.py	Wed Mar 26 21:13:07 2008 +0000
> @@ -290,7 +290,7 @@ class converter(object):
>                  # convert log message to local encoding without using
>                  # tolocal() because util._encoding conver() use it as
>                  # 'utf-8'
> -                self.ui.status("%d %s\n" % (num, recode(desc)))
> +                self.ui.status(util.ellipsis("%d %s\n" % (num, recode(desc)),80))

I am not really motivated by this change, but at least you want the '\n' outside the util.ellipsis() call.

>                  self.ui.note(_("source: %s\n" % recode(c)))
>                  self.copy(c)

--
Patrick Mézard


More information about the Mercurial-devel mailing list