convert: subversion convert abort on revision not found (issue 3205) stable
authorJesus Espino Garcia <jesus.espino@kaleidos.net>
Sat, 21 Jan 2012 13:31:41 +0100
branchstable
changeset 15970 9f2ed48f8cda
parent 15969 80f3ae36f908
child 15971 089ee59a8658
convert: subversion convert abort on revision not found (issue 3205)
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sat Jan 21 00:40:18 2012 +0100
+++ b/hgext/convert/subversion.py	Sat Jan 21 13:31:41 2012 +0100
@@ -439,6 +439,8 @@
             if revnum < stop:
                 stop = revnum + 1
             self._fetch_revisions(revnum, stop)
+            if rev not in self.commits:
+                raise util.Abort(_('svn: revision %s not found') % revnum)
         commit = self.commits[rev]
         # caller caches the result, so free it here to release memory
         del self.commits[rev]