diff mercurial/localrepo.py @ 17204:4feb55e6931f

localpeer: return only visible heads and branchmap Now that we have localpeer, we can apply filtering on heads and branchmap the same way it's done for wireprotocol peer.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 17 Jul 2012 01:04:45 +0200
parents 32a6a33b9a35
children 97eff00046de
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Jul 18 14:41:58 2012 +0200
+++ b/mercurial/localrepo.py	Tue Jul 17 01:04:45 2012 +0200
@@ -56,10 +56,10 @@
         return self._repo.lookup(key)
 
     def branchmap(self):
-        return self._repo.branchmap()
+        return phases.visiblebranchmap(self._repo)
 
     def heads(self):
-        return self._repo.heads()
+        return phases.visibleheads(self._repo)
 
     def known(self, nodes):
         return self._repo.known(nodes)