##// END OF EJS Templates
setdiscovery: limit the size of the initial sample (issue4411)...
Pierre-Yves David -
r23084:3ef89352 stable
parent child Browse files
Show More
@@ -133,7 +133,7 b' def findcommonheads(ui, local, remote,'
133 ui.debug("query 1; heads\n")
133 ui.debug("query 1; heads\n")
134 roundtrips += 1
134 roundtrips += 1
135 ownheads = dag.heads()
135 ownheads = dag.heads()
136 sample = ownheads
136 sample = _limitsample(ownheads, initialsamplesize)
137 if remote.local():
137 if remote.local():
138 # stopgap until we have a proper localpeer that supports batch()
138 # stopgap until we have a proper localpeer that supports batch()
139 srvheadhashes = remote.heads()
139 srvheadhashes = remote.heads()
@@ -311,16 +311,16 b' One with >200 heads, which used to use u'
311 searching for changes
311 searching for changes
312 taking quick initial sample
312 taking quick initial sample
313 searching: 2 queries
313 searching: 2 queries
314 query 2; still undecided: 1080, sample size is: 260
314 query 2; still undecided: 1240, sample size is: 260
315 sampling from both directions
315 sampling from both directions
316 searching: 3 queries
316 searching: 3 queries
317 query 3; still undecided: 820, sample size is: 260
317 query 3; still undecided: 980, sample size is: 260
318 sampling from both directions
318 sampling from both directions
319 searching: 4 queries
319 searching: 4 queries
320 query 4; still undecided: 560, sample size is: 260
320 query 4; still undecided: 720, sample size is: 260
321 sampling from both directions
321 sampling from both directions
322 searching: 5 queries
322 searching: 5 queries
323 query 5; still undecided: 300, sample size is: 200
323 query 5; still undecided: 460, sample size is: 200
324 5 total queries
324 5 total queries
325 common heads: 3ee37d65064a
325 common heads: 3ee37d65064a
326
326
General Comments 0
You need to be logged in to leave comments. Login now