Mercurial > hg
diff hgext/convert/subversion.py @ 15970:9f2ed48f8cda stable
convert: subversion convert abort on revision not found (issue 3205)
author | Jesus Espino Garcia <jesus.espino@kaleidos.net> |
---|---|
date | Sat, 21 Jan 2012 13:31:41 +0100 |
parents | 742c766c8cea |
children | 467a85ced564 |
line wrap: on
line diff
--- 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]