Comments
Patch
@@ -82,6 +82,13 @@ class converter_source(object):
def after(self):
pass
+ def targetfilebelongstosource(self, targetfilename):
+ """Returns true if the given targetfile belongs to the source repo. This
+ is useful when only a subdirectory of the target belongs to the source
+ repo."""
+ # For normal full repo converts, this is always True.
+ return True
+
def setrevmap(self, revmap):
"""set the map of already-converted revisions"""
pass
@@ -120,6 +120,9 @@ class progresssource(object):
item=file, total=self.filecount)
return self.source.getfile(file, rev)
+ def targetfilebelongstosource(self, targetfilename):
+ return self.source.targetfilebelongstosource(targetfilename)
+
def lookuprev(self, rev):
return self.source.lookuprev(rev)