Show More
@@ -198,13 +198,14 b' def findcommonheads(ui, local, remote,' | |||||
198 | ui.note(_("sampling from both directions\n")) |
|
198 | ui.note(_("sampling from both directions\n")) | |
199 | else: |
|
199 | else: | |
200 | ui.debug("taking initial sample\n") |
|
200 | ui.debug("taking initial sample\n") | |
201 |
sample = _takefullsample |
|
201 | samplefunc = _takefullsample | |
202 | targetsize = fullsamplesize |
|
202 | targetsize = fullsamplesize | |
203 | else: |
|
203 | else: | |
204 | # use even cheaper initial sample |
|
204 | # use even cheaper initial sample | |
205 | ui.debug("taking quick initial sample\n") |
|
205 | ui.debug("taking quick initial sample\n") | |
206 |
sample = _takequicksample |
|
206 | samplefunc = _takequicksample | |
207 | targetsize = initialsamplesize |
|
207 | targetsize = initialsamplesize | |
|
208 | sample = samplefunc(dag, undecided, targetsize) | |||
208 | sample = _limitsample(sample, targetsize) |
|
209 | sample = _limitsample(sample, targetsize) | |
209 |
|
210 | |||
210 | roundtrips += 1 |
|
211 | roundtrips += 1 |
General Comments 0
You need to be logged in to leave comments.
Login now