[PATCH 1 of 3] convert: drop unused getheads from sinks

Mads Kiilerich mads at kiilerich.com
Fri Feb 7 10:37:10 CST 2014


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1391790388 -3600
#      Fri Feb 07 17:26:28 2014 +0100
# Node ID cf8937085fd16e616c56306cdab9b86b6b605262
# Parent  9fe578297b5c3f63512cc003c6fcdca85fa66435
convert: drop unused getheads from sinks

diff --git a/hgext/convert/common.py b/hgext/convert/common.py
--- a/hgext/convert/common.py
+++ b/hgext/convert/common.py
@@ -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
diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -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


More information about the Mercurial-devel mailing list