# HG changeset patch # User Jesus Espino Garcia # Date 1327149101 -3600 # Node ID 9f2ed48f8cda548b6e06297c88cb6109b4479649 # Parent 80f3ae36f908ea9e0dcaaa420e7f334274786ba9 convert: subversion convert abort on revision not found (issue 3205) diff -r 80f3ae36f908 -r 9f2ed48f8cda 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]