convert: drop unused getheads from sinks
authorMads Kiilerich <madski@unity3d.com>
Fri, 07 Feb 2014 17:26:28 +0100
changeset 20397 d7e78e6d97bd
parent 20396 a8e6ab7eb361
child 20398 2bc520bd0ce0
convert: drop unused getheads from sinks
hgext/convert/common.py
hgext/convert/hg.py
--- a/hgext/convert/common.py	Sat Feb 08 10:41:17 2014 +0100
+++ b/hgext/convert/common.py	Fri Feb 07 17:26:28 2014 +0100
@@ -192,10 +192,6 @@
         self.path = path
         self.created = []
 
-    def getheads(self):
-        """Return a list of this repository's heads"""
-        raise NotImplementedError
-
     def revmapfile(self):
         """Path to a file that will contain lines
         source_rev_id sink_rev_id
--- a/hgext/convert/hg.py	Sat Feb 08 10:41:17 2014 +0100
+++ b/hgext/convert/hg.py	Fri Feb 07 17:26:28 2014 +0100
@@ -78,10 +78,6 @@
     def authorfile(self):
         return self.repo.join("authormap")
 
-    def getheads(self):
-        h = self.repo.changelog.heads()
-        return [hex(x) for x in h]
-
     def setbranch(self, branch, pbranches):
         if not self.clonebranches:
             return