# HG changeset patch # User Pierre-Yves David # Date 2013-01-06 03:48:22 # Node ID ac25d75970c8842e4d4e40729421435d2a646da9 # Parent 595bd4c5b13524ecb3c21ae06304ac088f9c855c clfilter: remove the last usage of `visibleheads` We can just inline the filtering now that all server code uses changelog filtering directly. diff --git a/mercurial/discovery.py b/mercurial/discovery.py --- a/mercurial/discovery.py +++ b/mercurial/discovery.py @@ -115,7 +115,7 @@ def findcommonoutgoing(repo, other, only 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