# HG changeset patch # User Pierre-Yves David # Date 1357444102 -3600 # 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 -r 595bd4c5b135 -r ac25d75970c8 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