Patchwork [2,of,7,Series-C] clfilter: drop extra filtering in localpeer

mail settings
Submitter Pierre-Yves David
Date Jan. 7, 2013, 6:16 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/480/
State Accepted
Commit 679767c38cb52a77142ad49a8dc3a9a0e75e7929
Headers show


Pierre-Yves David - Jan. 7, 2013, 6:16 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at>
# Date 1357442932 -3600
# Node ID 0435d26ab186b93e4b20e03587a9718ca452e980
# Parent  2778e19ac2892d96a1a1615ca5f20ab0179d6d38
clfilter: drop extra filtering in localpeer

The repository used by localpeer is already filtered. We do not need to call
special function anymore.


diff --git a/mercurial/ b/mercurial/
--- a/mercurial/
+++ b/mercurial/
@@ -89,14 +89,14 @@  class localpeer(peer.peerrepository):
     def lookup(self, key):
         return self._repo.lookup(key)
     def branchmap(self):
-        return discovery.visiblebranchmap(self._repo)
+        return self._repo.branchmap()
     def heads(self):
-        return discovery.visibleheads(self._repo)
+        return self._repo.heads()
     def known(self, nodes):
         return self._repo.known(nodes)
     def getbundle(self, source, heads=None, common=None):