# HG changeset patch # User Benoit Boissinot # Date 1279808313 -7200 # Node ID eefa362d0b4572d40ebb20a7263e18e28635a06f # Parent 08a269d9c4ca9b066400d7e4ae5febd19ee6ecc3 changegroup(): used "linkrev" instead of "revlink" diff -r 08a269d9c4ca -r eefa362d0b45 mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Jul 22 15:32:26 2010 +0200 +++ b/mercurial/localrepo.py Thu Jul 22 16:18:33 2010 +0200 @@ -1557,10 +1557,10 @@ if log.linkrev(r) in revset: yield log.node(r) - def lookuprevlink_func(revlog): - def lookuprevlink(n): + def lookuplinkrev_func(revlog): + def lookuplinkrev(n): return cl.node(revlog.linkrev(revlog.rev(n))) - return lookuprevlink + return lookuplinkrev def gengroup(): '''yield a sequence of changegroup chunks (strings)''' @@ -1579,7 +1579,7 @@ mnfst = self.manifest nodeiter = gennodelst(mnfst) cnt = 0 - for chnk in mnfst.group(nodeiter, lookuprevlink_func(mnfst)): + for chnk in mnfst.group(nodeiter, lookuplinkrev_func(mnfst)): self.ui.progress(_('bundling manifests'), cnt, unit=_('chunks')) cnt += 1 yield chnk @@ -1595,7 +1595,7 @@ if nodeiter: yield changegroup.chunkheader(len(fname)) yield fname - lookup = lookuprevlink_func(filerevlog) + lookup = lookuplinkrev_func(filerevlog) for chnk in filerevlog.group(nodeiter, lookup): self.ui.progress( _('bundling files'), cnt, item=fname, unit=_('chunks'))