Show More
@@ -1403,11 +1403,9 b' class localrepository(repo.repository):' | |||
|
1403 | 1403 | # Create a changenode group generator that will call our functions |
|
1404 | 1404 | # back to lookup the owning changenode and collect information. |
|
1405 | 1405 | group = cl.group(msng_cl_lst, identity, collect) |
|
1406 | cnt = 0 | |
|
1407 | for chnk in group: | |
|
1406 | for cnt, chnk in enumerate(group): | |
|
1408 | 1407 | yield chnk |
|
1409 | 1408 | self.ui.progress(_('bundling changes'), cnt, unit=_('chunks')) |
|
1410 | cnt += 1 | |
|
1411 | 1409 | self.ui.progress(_('bundling changes'), None) |
|
1412 | 1410 | |
|
1413 | 1411 | prune(mnfst, msng_mnfst_set) |
@@ -1420,11 +1418,9 b' class localrepository(repo.repository):' | |||
|
1420 | 1418 | group = mnfst.group(msng_mnfst_lst, |
|
1421 | 1419 | lambda mnode: msng_mnfst_set[mnode], |
|
1422 | 1420 | filenode_collector(changedfiles)) |
|
1423 | cnt = 0 | |
|
1424 | for chnk in group: | |
|
1421 | for cnt, chnk in enumerate(group): | |
|
1425 | 1422 | yield chnk |
|
1426 | 1423 | self.ui.progress(_('bundling manifests'), cnt, unit=_('chunks')) |
|
1427 | cnt += 1 | |
|
1428 | 1424 | self.ui.progress(_('bundling manifests'), None) |
|
1429 | 1425 | |
|
1430 | 1426 | # These are no longer needed, dereference and toss the memory for |
@@ -1516,19 +1512,16 b' class localrepository(repo.repository):' | |||
|
1516 | 1512 | mmfs = {} |
|
1517 | 1513 | collect = changegroup.collector(cl, mmfs, changedfiles) |
|
1518 | 1514 | |
|
1519 | cnt = 0 | |
|
1520 | for chnk in cl.group(nodes, identity, collect): | |
|
1515 | for cnt, chnk in enumerate(cl.group(nodes, identity, collect)): | |
|
1521 | 1516 | self.ui.progress(_('bundling changes'), cnt, unit=_('chunks')) |
|
1522 | cnt += 1 | |
|
1523 | 1517 | yield chnk |
|
1524 | 1518 | self.ui.progress(_('bundling changes'), None) |
|
1525 | 1519 | |
|
1526 | 1520 | mnfst = self.manifest |
|
1527 | 1521 | nodeiter = gennodelst(mnfst) |
|
1528 | cnt = 0 | |
|
1529 | for chnk in mnfst.group(nodeiter, lookuplinkrev_func(mnfst)): | |
|
1522 | for cnt, chnk in enumerate(mnfst.group(nodeiter, | |
|
1523 | lookuplinkrev_func(mnfst))): | |
|
1530 | 1524 | self.ui.progress(_('bundling manifests'), cnt, unit=_('chunks')) |
|
1531 | cnt += 1 | |
|
1532 | 1525 | yield chnk |
|
1533 | 1526 | self.ui.progress(_('bundling manifests'), None) |
|
1534 | 1527 |
General Comments 0
You need to be logged in to leave comments.
Login now