convert: raise correct type of exception if svn converter can't handle rev
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 06 Aug 2007 14:16:02 -0700
changeset 5130 462cc56d898f
parent 5129 eca5b31cffc7
child 5131 2f9edf6bae95
convert: raise correct type of exception if svn converter can't handle rev
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Mon Aug 06 12:53:49 2007 -0700
+++ b/hgext/convert/subversion.py	Mon Aug 06 14:16:02 2007 -0700
@@ -78,7 +78,7 @@
             try:
                 latest = int(rev)
             except ValueError:
-                raise util.Abort('svn: revision %s is not an integer' % rev)
+                raise NoRepo('svn: revision %s is not an integer' % rev)
         try:
             # Support file://path@rev syntax. Useful e.g. to convert
             # deleted branches.