--- 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):
--- a/hgext/convert/subversion.py Sun Oct 07 20:44:54 2007 +0200
+++ b/hgext/convert/subversion.py Sun Oct 07 20:45:10 2007 +0200
@@ -100,9 +100,7 @@
try:
SubversionException
except NameError:
- msg = 'subversion python bindings could not be loaded\n'
- ui.warn(msg)
- raise NoRepo(msg)
+ raise NoRepo('subversion python bindings could not be loaded')
self.encoding = locale.getpreferredencoding()
self.lastrevs = {}