equal
deleted
inserted
replaced
605 progress.increment() |
605 progress.increment() |
606 |
606 |
607 progress = repo.ui.makeprogress( |
607 progress = repo.ui.makeprogress( |
608 _(b'files'), |
608 _(b'files'), |
609 unit=_(b'chunks'), |
609 unit=_(b'chunks'), |
610 total=sum(len(v) for v in fnodes.itervalues()), |
610 total=sum(len(v) for v in pycompat.itervalues(fnodes)), |
611 ) |
611 ) |
612 |
612 |
613 # TODO make batch size configurable |
613 # TODO make batch size configurable |
614 batchsize = 10000 |
614 batchsize = 10000 |
615 fnodeslist = [x for x in sorted(fnodes.items())] |
615 fnodeslist = [x for x in sorted(fnodes.items())] |
704 remaining -= 1 |
704 remaining -= 1 |
705 |
705 |
706 progress = repo.ui.makeprogress( |
706 progress = repo.ui.makeprogress( |
707 _(b'files'), |
707 _(b'files'), |
708 unit=_(b'chunks'), |
708 unit=_(b'chunks'), |
709 total=sum(len(v) for v in fnodes.itervalues()), |
709 total=sum(len(v) for v in pycompat.itervalues(fnodes)), |
710 ) |
710 ) |
711 |
711 |
712 commandmeta = remote.apidescriptor[b'commands'][b'filesdata'] |
712 commandmeta = remote.apidescriptor[b'commands'][b'filesdata'] |
713 batchsize = commandmeta.get(b'recommendedbatchsize', 50000) |
713 batchsize = commandmeta.get(b'recommendedbatchsize', 50000) |
714 |
714 |