Mercurial > hg-stable
diff mercurial/setdiscovery.py @ 17204:4feb55e6931f
localpeer: return only visible heads and branchmap
Now that we have localpeer, we can apply filtering on heads and branchmap the
same way it's done for wireprotocol peer.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 17 Jul 2012 01:04:45 +0200 |
parents | 5884812686f7 |
children | e7cfe3587ea4 |
line wrap: on
line diff
--- a/mercurial/setdiscovery.py Wed Jul 18 14:41:58 2012 +0200 +++ b/mercurial/setdiscovery.py Tue Jul 17 01:04:45 2012 +0200 @@ -9,7 +9,6 @@ from node import nullid from i18n import _ import random, util, dagutil -import phases def _updatesample(dag, nodes, sample, always, quicksamplesize=0): # if nodes is empty we scan the entire graph @@ -100,7 +99,7 @@ sample = ownheads if remote.local(): # stopgap until we have a proper localpeer that supports batch() - srvheadhashes = phases.visibleheads(remote.local()) + srvheadhashes = remote.heads() yesno = remote.known(dag.externalizeall(sample)) elif remote.capable('batch'): batch = remote.batch()