hgext/convert/subversion.py
branchstable
changeset 15970 9f2ed48f8cda
parent 15751 742c766c8cea
child 16067 467a85ced564
--- 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]