diff hgext/convert/common.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 ebaa0aa749e2
children d554a3dcae5a
line wrap: on
line diff
--- a/hgext/convert/common.py	Fri Feb 10 22:25:49 2012 +0100
+++ b/hgext/convert/common.py	Fri Feb 10 22:34:13 2012 +0100
@@ -245,6 +245,10 @@
         """
         pass
 
+    def hascommit(self, rev):
+        """Return True if the sink contains rev"""
+        raise NotImplementedError()
+
 class commandline(object):
     def __init__(self, ui, command):
         self.ui = ui