equal
deleted
inserted
replaced
188 return getrev(r)[5:7] |
188 return getrev(r)[5:7] |
189 |
189 |
190 return getparents |
190 return getparents |
191 |
191 |
192 def _childrengetter(self): |
192 def _childrengetter(self): |
|
193 |
193 if self._childrenmap is not None: |
194 if self._childrenmap is not None: |
194 # During discovery, the `undecided` set keep shrinking. |
195 # During discovery, the `undecided` set keep shrinking. |
195 # Therefore, the map computed for an iteration N will be |
196 # Therefore, the map computed for an iteration N will be |
196 # valid for iteration N+1. Instead of computing the same |
197 # valid for iteration N+1. Instead of computing the same |
197 # data over and over we cached it the first time. |
198 # data over and over we cached it the first time. |
451 disco.addinfo(zip(sample, yesno)) |
452 disco.addinfo(zip(sample, yesno)) |
452 |
453 |
453 full = not initial_head_exchange |
454 full = not initial_head_exchange |
454 progress = ui.makeprogress(_(b'searching'), unit=_(b'queries')) |
455 progress = ui.makeprogress(_(b'searching'), unit=_(b'queries')) |
455 while not disco.iscomplete(): |
456 while not disco.iscomplete(): |
|
457 |
456 if full or disco.hasinfo(): |
458 if full or disco.hasinfo(): |
457 if full: |
459 if full: |
458 ui.note(_(b"sampling from both directions\n")) |
460 ui.note(_(b"sampling from both directions\n")) |
459 else: |
461 else: |
460 ui.debug(b"taking initial sample\n") |
462 ui.debug(b"taking initial sample\n") |