[PATCH] convert/svn: Abort operation when python bindings are not available

Azhagu Selvan SP tamizhgeek at gmail.com
Fri Feb 18 13:15:31 CST 2011


# HG changeset patch
# User Azhagu Selvan SP <tamizhgeek at gmail.com>
# Date 1298056326 -19800
# Node ID c4e14b409061f10dff1c0f3eee4c3060cd945707
# Parent  d6ab3edca8cde6f6f8459868f97aaa1a43b0b72c
convert/svn: Abort operation when python bindings are not available

If python bindings are not available, raise a exception and abort
the operation.

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -36,7 +36,7 @@
             category=DeprecationWarning)
 
 except ImportError:
-    pass
+    raise util.Abort("Subversion Python bindings not installed or Not found in PYTHONPATH!")
 
 class SvnPathNotFound(Exception):
     pass


More information about the Mercurial-devel mailing list