##// END OF EJS Templates
convert: drop unused getheads from sinks
Mads Kiilerich -
r20397:d7e78e6d default
parent child Browse files
Show More
@@ -192,10 +192,6 b' class converter_sink(object):'
192 self.path = path
192 self.path = path
193 self.created = []
193 self.created = []
194
194
195 def getheads(self):
196 """Return a list of this repository's heads"""
197 raise NotImplementedError
198
199 def revmapfile(self):
195 def revmapfile(self):
200 """Path to a file that will contain lines
196 """Path to a file that will contain lines
201 source_rev_id sink_rev_id
197 source_rev_id sink_rev_id
@@ -78,10 +78,6 b' class mercurial_sink(converter_sink):'
78 def authorfile(self):
78 def authorfile(self):
79 return self.repo.join("authormap")
79 return self.repo.join("authormap")
80
80
81 def getheads(self):
82 h = self.repo.changelog.heads()
83 return [hex(x) for x in h]
84
85 def setbranch(self, branch, pbranches):
81 def setbranch(self, branch, pbranches):
86 if not self.clonebranches:
82 if not self.clonebranches:
87 return
83 return
General Comments 0
You need to be logged in to leave comments. Login now