Mercurial > hg
comparison mercurial/changegroup.py @ 24898:0bbf061564cf
changegroup: rename 'needed' to 'clrevs' to match 'clnodes'
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 20 Apr 2015 14:11:20 -0700 |
parents | 5c35a6040352 |
children | cf1ea7566b20 |
comparison
equal
deleted
inserted
replaced
24897:5c35a6040352 | 24898:0bbf061564cf |
---|---|
415 yield chunk | 415 yield chunk |
416 self._verbosenote(_('%8.i (manifests)\n') % size) | 416 self._verbosenote(_('%8.i (manifests)\n') % size) |
417 progress(msgbundling, None) | 417 progress(msgbundling, None) |
418 | 418 |
419 mfs.clear() | 419 mfs.clear() |
420 needed = set(cl.rev(x) for x in clnodes) | 420 clrevs = set(cl.rev(x) for x in clnodes) |
421 | 421 |
422 def linknodes(filerevlog, fname): | 422 def linknodes(filerevlog, fname): |
423 if fastpathlinkrev and not reorder: | 423 if fastpathlinkrev and not reorder: |
424 llr = filerevlog.linkrev | 424 llr = filerevlog.linkrev |
425 def genfilenodes(): | 425 def genfilenodes(): |
426 for r in filerevlog: | 426 for r in filerevlog: |
427 linkrev = llr(r) | 427 linkrev = llr(r) |
428 if linkrev in needed: | 428 if linkrev in clrevs: |
429 yield filerevlog.node(r), cl.node(linkrev) | 429 yield filerevlog.node(r), cl.node(linkrev) |
430 return dict(genfilenodes()) | 430 return dict(genfilenodes()) |
431 return fnodes.get(fname, {}) | 431 return fnodes.get(fname, {}) |
432 | 432 |
433 for chunk in self.generatefiles(changedfiles, linknodes, commonrevs, | 433 for chunk in self.generatefiles(changedfiles, linknodes, commonrevs, |