comparison mercurial/localrepo.py @ 17205:97eff00046de

repo: move visibleheads and visiblebranchmap logic in discovery They were previously inside the mercurial.phases module, but obsolete logic will need them to exclude `extinct` changesets from pull and push. The proper and planned way to implement such filtering is still to apply a changelog level filtering. But we are far to late in the cycle to implement and push such a critical piece of code (changelog filtering). With Matt Mackall approval I'm extending this quick and dirty mechanism for obsolete purpose. Changelog level filtering should come during the next release cycle.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 17 Jul 2012 01:22:31 +0200
parents 4feb55e6931f
children 62c56c94c77e
comparison
equal deleted inserted replaced
17204:4feb55e6931f 17205:97eff00046de
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 phases.visiblebranchmap(self._repo) 59 return discovery.visiblebranchmap(self._repo)
60 60
61 def heads(self): 61 def heads(self):
62 return phases.visibleheads(self._repo) 62 return discovery.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):