Mercurial > hg
changeset 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 | 80f3ae36f908 |
children | 089ee59a8658 |
files | hgext/convert/subversion.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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]