[PATCH 4 of 7] convert: Fix unbound name error in the subversion backend

Joel Rosdahl joel at rosdahl.net
Thu Mar 6 15:52:15 CST 2008


# HG changeset patch
# User Joel Rosdahl <joel at rosdahl.net>
# Date 1204838621 -3600
# Node ID e807b9b489cdb01765167b0de03a3da19ab817e9
# Parent  d0671233cf16d306db9a1072f042291cf23182a4
convert: Fix unbound name error in the subversion backend

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -793,8 +793,7 @@
                     pass
         except SubversionException, (inst, num):
             if num == svn.core.SVN_ERR_FS_NO_SUCH_REVISION:
-                raise NoSuchRevision(branch=self,
-                    revision="Revision number %d" % to_revnum)
+                raise util.Abort('svn: branch has no revision %s' % to_revnum)
             raise
 
     def _getfile(self, file, rev):


More information about the Mercurial-devel mailing list