From patchwork Fri Feb 7 16:37:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,3] convert: drop unused getheads from sinks From: Mads Kiilerich X-Patchwork-Id: 3512 Message-Id: To: mercurial-devel@selenic.com Date: Fri, 07 Feb 2014 17:37:10 +0100 # HG changeset patch # User Mads Kiilerich # 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