[PATCH 1 of 2] convert/svn: Handle MissingTool exception from converter_sink class

Azhagu Selvan SP tamizhgeek at gmail.com
Wed Feb 23 19:47:50 UTC 2011


# HG changeset patch
# User Azhagu Selvan SP <tamizhgeek at gmail.com>
# Date 1298488502 -19800
# Node ID 8143e47c6283107bfdc9b09e3c60b94415c1603e
# Parent  69dba6f17e3d3d7f1dd8a789cb7f2f4895bc948c
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 -r 69dba6f17e3d -r 8143e47c6283 hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Tue Feb 22 22:31:57 2011 +0530
+++ b/hgext/convert/convcmd.py	Thu Feb 24 00:45:02 2011 +0530
@@ -70,6 +70,8 @@
                 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):



More information about the Mercurial-devel mailing list