[PATCH] convert: show exception name when repository conversion fails
Mads Kiilerich
mads at kiilerich.com
Fri Jan 7 10:07:07 CST 2011
On 01/07/2011 04:10 PM, anatoly techtonik wrote:
> # HG changeset patch
> # User anatoly techtonik<techtonik at gmail.com>
> # Date 1294412623 -7200
> # Node ID 6200fa4ca6200470de58a943f95cb2577579f4c3
> # Parent f3058dd052819de75908599d93a29241ba69318f
> convert: show exception name when repository conversion fails
There is a spurious DEL character between 'when' and 'repository'.
> diff -r f3058dd05281 -r 6200fa4ca620 hgext/convert/convcmd.py
> --- a/hgext/convert/convcmd.py Fri Dec 31 17:09:38 2010 -0600
> +++ b/hgext/convert/convcmd.py Fri Jan 07 17:03:43 2011 +0200
> @@ -58,7 +58,7 @@
> exceptions.append(inst)
> if not ui.quiet:
> for inst in exceptions:
> - ui.write("%s\n" % inst)
> + ui.write("%s: %s\n" % (inst.__class__.__name__, inst))
> raise util.Abort(_('%s: missing or unsupported repository') % path)
>
> def convertsink(ui, path, type):
Can you give an example of the output before and after this patch?
/Mads
More information about the Mercurial-devel
mailing list