Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
17203:0cb55b5c19a3 | 17204:4feb55e6931f |
---|---|
54 | 54 |
55 def lookup(self, key): | 55 def lookup(self, key): |
56 return self._repo.lookup(key) | 56 return self._repo.lookup(key) |
57 | 57 |
58 def branchmap(self): | 58 def branchmap(self): |
59 return self._repo.branchmap() | 59 return phases.visiblebranchmap(self._repo) |
60 | 60 |
61 def heads(self): | 61 def heads(self): |
62 return self._repo.heads() | 62 return phases.visibleheads(self._repo) |
63 | 63 |
64 def known(self, nodes): | 64 def known(self, nodes): |
65 return self._repo.known(nodes) | 65 return self._repo.known(nodes) |
66 | 66 |
67 def getbundle(self, source, heads=None, common=None): | 67 def getbundle(self, source, heads=None, common=None): |