Patchwork [3,of,6] changegroup: rename 'needed' to 'clrevs' to match 'clnodes'

login
register
mail settings
Submitter Martin von Zweigbergk
Date May 1, 2015, 10:50 p.m.
Message ID <28c7322c4d565b61101b.1430520641@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/8830/
State Accepted
Headers show

Comments

Martin von Zweigbergk - May 1, 2015, 10:50 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1429564280 25200
#      Mon Apr 20 14:11:20 2015 -0700
# Node ID 28c7322c4d565b61101b6c8da36bd361297d3535
# Parent  3d850e57e7bce831fc3791537eadf649aa009b67
changegroup: rename 'needed' to 'clrevs' to match 'clnodes'

Patch

diff -r 3d850e57e7bc -r 28c7322c4d56 mercurial/changegroup.py
--- 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, {})