##// 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 133 ui.debug("query 1; heads\n")
134 134 roundtrips += 1
135 135 ownheads = dag.heads()
136 sample = ownheads
136 sample = _limitsample(ownheads, initialsamplesize)
137 137 if remote.local():
138 138 # stopgap until we have a proper localpeer that supports batch()
139 139 srvheadhashes = remote.heads()
@@ -311,16 +311,16 b' One with >200 heads, which used to use u'
311 311 searching for changes
312 312 taking quick initial sample
313 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 315 sampling from both directions
316 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 318 sampling from both directions
319 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 321 sampling from both directions
322 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 324 5 total queries
325 325 common heads: 3ee37d65064a
326 326
General Comments 0
You need to be logged in to leave comments. Login now