[PATCH] convert: show exception name when repository conversion fails

anatoly techtonik techtonik at gmail.com
Fri Jan 7 09:10:11 CST 2011


# 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

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):


More information about the Mercurial-devel mailing list