# HG changeset patch # User Martin von Zweigbergk # Date 2015-04-20 21:11:20 # Node ID 0bbf061564cfde660d11881e4e026d0d19f75e1c # Parent 5c35a604035284c8062d110a768343a7dcec7158 changegroup: rename 'needed' to 'clrevs' to match 'clnodes' diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -417,7 +417,7 @@ class cg1packer(object): 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 @@ class cg1packer(object): 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, {})