Show More
@@ -197,6 +197,7 b' def findcommonheads(ui, local, remote,' | |||
|
197 | 197 | missing = set() |
|
198 | 198 | |
|
199 | 199 | full = False |
|
200 | progress = ui.makeprogress(_('searching'), unit=_('queries')) | |
|
200 | 201 | while undecided: |
|
201 | 202 | |
|
202 | 203 | if sample: |
@@ -226,7 +227,7 b' def findcommonheads(ui, local, remote,' | |||
|
226 | 227 | sample = samplefunc(dag, undecided, targetsize) |
|
227 | 228 | |
|
228 | 229 | roundtrips += 1 |
|
229 | ui.progress(_('searching'), roundtrips, unit=_('queries')) | |
|
230 | progress.update(roundtrips) | |
|
230 | 231 | ui.debug("query %i; still undecided: %i, sample size is: %i\n" |
|
231 | 232 | % (roundtrips, len(undecided), len(sample))) |
|
232 | 233 | # indices between sample and externalized version must match |
@@ -251,7 +252,7 b' def findcommonheads(ui, local, remote,' | |||
|
251 | 252 | # return any heads in that case, so discard that |
|
252 | 253 | result.discard(nullrev) |
|
253 | 254 | elapsed = util.timer() - start |
|
254 | ui.progress(_('searching'), None) | |
|
255 | progress.update(None) | |
|
255 | 256 | ui.debug("%d total queries in %.4fs\n" % (roundtrips, elapsed)) |
|
256 | 257 | msg = ('found %d common and %d unknown server heads,' |
|
257 | 258 | ' %d roundtrips in %.4fs\n') |
General Comments 0
You need to be logged in to leave comments.
Login now