hgext/convert/__init__.py
changeset 5415 1d53a75ea0fc
parent 5414 eb58722d282f
child 5438 6fa5258be3d4
--- a/hgext/convert/__init__.py	Sun Oct 07 20:44:54 2007 +0200
+++ b/hgext/convert/__init__.py	Sun Oct 07 20:45:10 2007 +0200
@@ -26,8 +26,10 @@
     for c in source_converters:
         try:
             return c.getcommit and c(ui, path, **opts)
-        except (AttributeError, NoRepo):
+        except AttributeError:
             pass
+        except NoRepo, inst:
+            ui.note(_("convert: %s\n") % inst)
     raise util.Abort('%s: unknown repository type' % path)
 
 def convertsink(ui, path):
@@ -36,8 +38,10 @@
     for c in sink_converters:
         try:
             return c.putcommit and c(ui, path)
-        except (AttributeError, NoRepo):
+        except AttributeError:
             pass
+        except NoRepo, inst:
+            ui.note(_("convert: %s\n") % inst)
     raise util.Abort('%s: unknown repository type' % path)
 
 class converter(object):