Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Jul 17 01:04:45 2012 +0200 +++ b/mercurial/localrepo.py Tue Jul 17 01:22:31 2012 +0200 @@ -56,10 +56,10 @@ return self._repo.lookup(key) def branchmap(self): - return phases.visiblebranchmap(self._repo) + return discovery.visiblebranchmap(self._repo) def heads(self): - return phases.visibleheads(self._repo) + return discovery.visibleheads(self._repo) def known(self, nodes): return self._repo.known(nodes)