Mercurial > hg-stable
changeset 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 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Tue Apr 28 13:49:19 2015 -0700 +++ b/mercurial/changegroup.py Mon Apr 20 14:11:20 2015 -0700 @@ -417,7 +417,7 @@ progress(msgbundling, None) mfs.clear() - needed = set(cl.rev(x) for x in clnodes) + clrevs = set(cl.rev(x) for x in clnodes) def linknodes(filerevlog, fname): if fastpathlinkrev and not reorder: @@ -425,7 +425,7 @@ def genfilenodes(): for r in filerevlog: linkrev = llr(r) - if linkrev in needed: + if linkrev in clrevs: yield filerevlog.node(r), cl.node(linkrev) return dict(genfilenodes()) return fnodes.get(fname, {})