clfilter: remove the last usage of `visibleheads`
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sun, 06 Jan 2013 04:48:22 +0100
changeset 18283 ac25d75970c8
parent 18282 595bd4c5b135
child 18284 e4be4e2ac814
clfilter: remove the last usage of `visibleheads` We can just inline the filtering now that all server code uses changelog filtering directly.
mercurial/discovery.py
--- a/mercurial/discovery.py	Sat Jan 05 18:57:09 2013 +0100
+++ b/mercurial/discovery.py	Sun Jan 06 04:48:22 2013 +0100
@@ -115,7 +115,7 @@
         og.missingheads = onlyheads or repo.heads()
     elif onlyheads is None:
         # use visible heads as it should be cached
-        og.missingheads = visibleheads(repo)
+        og.missingheads = repo.filtered("unserved").heads()
         og.excluded = [ctx.node() for ctx in repo.set('secret() or extinct()')]
     else:
         # compute common, missing and exclude secret stuff