diff hgext/convert/subversion.py @ 14152:00121103546a

convert: handle invalid subversion source paths
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 01 May 2011 17:35:05 +0200
parents d13913355390
children 135e244776f0
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Sun May 01 17:34:16 2011 +0200
+++ b/hgext/convert/subversion.py	Sun May 01 17:35:05 2011 +0200
@@ -278,7 +278,10 @@
             raise util.Abort(_('svn: start revision %s is not an integer')
                              % self.startrev)
 
-        self.head = self.latest(self.module, latest)
+        try:
+            self.head = self.latest(self.module, latest)
+        except SvnPathNotFound:
+            self.head = None
         if not self.head:
             raise util.Abort(_('no revision found in module %s')
                              % self.module)