Patchwork [6,of,7,Series-C] clfilter: remove the last usage of `visibleheads`

mail settings
Submitter Pierre-Yves David
Date Jan. 7, 2013, 6:16 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/483/
State Accepted
Commit ac25d75970c8842e4d4e40729421435d2a646da9
Headers show


Pierre-Yves David - Jan. 7, 2013, 6:16 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at>
# Date 1357444102 -3600
# Node ID 6bae87dc0a2b5b7013700db66b63f8a0067112eb
# Parent  55fea9d375d89782ac3f8949b1275ee11f76d8b5
clfilter: remove the last usage of `visibleheads`

We can just inlines the filtering now that all server user now use changelog
filtering directly.


diff --git a/mercurial/ b/mercurial/
--- a/mercurial/
+++ b/mercurial/
@@ -113,11 +113,11 @@  def findcommonoutgoing(repo, other, only
     mayexclude = (repo._phasecache.phaseroots[phases.secret] or repo.obsstore)
     if not mayexclude:
         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()')]
         # compute common, missing and exclude secret stuff
         sets = repo.changelog.findcommonmissing(og.commonheads, onlyheads)
         og._common, allmissing = sets