# HG changeset patch # User Azhagu Selvan SP # Date 2011-02-23 19:15:02 # Node ID b14ed1692b2784655d0fb190faabf02dda111df3 # Parent c631ac07637573bfabfdd6ce2ca9203817db2e60 convert/svn: handle MissingTool exception from converter_sink class The converter_sink class had no way of handling MissingTool exception. This change makes it to abort when there is a MissingTool exception. diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -70,6 +70,8 @@ def convertsink(ui, path, type): return sink(ui, path) except NoRepo, inst: ui.note(_("convert: %s\n") % inst) + except MissingTool, inst: + raise util.Abort(_('%s\n') % inst) raise util.Abort(_('%s: unknown repository type') % path) class progresssource(object):