Mercurial > hg
diff hgext/convert/subversion.py @ 16106:d75aa756149b stable
convert: use splicemap entries when sorting revisions (issue1748)
When sorting revisions before converting them, we have to edit the revision
graph using splicemap entries. Otherwise, a spliced revision may be converted
before its synthetic parents. Invalid splicemap revisions are now detected
before starting the conversion.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 10 Feb 2012 22:34:13 +0100 |
parents | 467a85ced564 |
children | 7e279d475669 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Fri Feb 10 22:25:49 2012 +0100 +++ b/hgext/convert/subversion.py Fri Feb 10 22:34:13 2012 +0100 @@ -1187,3 +1187,12 @@ def puttags(self, tags): self.ui.warn(_('writing Subversion tags is not yet implemented\n')) return None, None + + def hascommit(self, rev): + # This is not correct as one can convert to an existing subversion + # repository and childmap would not list all revisions. Too bad. + if rev in self.childmap: + return True + raise util.Abort(_('splice map revision %s not found in subversion ' + 'child map (revision lookups are not implemented') + % rev)