Show More
@@ -1557,10 +1557,10 b' class localrepository(repo.repository):' | |||
|
1557 | 1557 | if log.linkrev(r) in revset: |
|
1558 | 1558 | yield log.node(r) |
|
1559 | 1559 | |
|
1560 |
def lookup |
|
|
1561 |
def lookup |
|
|
1560 | def lookuplinkrev_func(revlog): | |
|
1561 | def lookuplinkrev(n): | |
|
1562 | 1562 | return cl.node(revlog.linkrev(revlog.rev(n))) |
|
1563 |
return lookup |
|
|
1563 | return lookuplinkrev | |
|
1564 | 1564 | |
|
1565 | 1565 | def gengroup(): |
|
1566 | 1566 | '''yield a sequence of changegroup chunks (strings)''' |
@@ -1579,7 +1579,7 b' class localrepository(repo.repository):' | |||
|
1579 | 1579 | mnfst = self.manifest |
|
1580 | 1580 | nodeiter = gennodelst(mnfst) |
|
1581 | 1581 | cnt = 0 |
|
1582 |
for chnk in mnfst.group(nodeiter, lookup |
|
|
1582 | for chnk in mnfst.group(nodeiter, lookuplinkrev_func(mnfst)): | |
|
1583 | 1583 | self.ui.progress(_('bundling manifests'), cnt, unit=_('chunks')) |
|
1584 | 1584 | cnt += 1 |
|
1585 | 1585 | yield chnk |
@@ -1595,7 +1595,7 b' class localrepository(repo.repository):' | |||
|
1595 | 1595 | if nodeiter: |
|
1596 | 1596 | yield changegroup.chunkheader(len(fname)) |
|
1597 | 1597 | yield fname |
|
1598 |
lookup = lookup |
|
|
1598 | lookup = lookuplinkrev_func(filerevlog) | |
|
1599 | 1599 | for chnk in filerevlog.group(nodeiter, lookup): |
|
1600 | 1600 | self.ui.progress( |
|
1601 | 1601 | _('bundling files'), cnt, item=fname, unit=_('chunks')) |
General Comments 0
You need to be logged in to leave comments.
Login now