changegroupsubset: renest inner loop
authorMatt Mackall <mpm@selenic.com>
Fri, 13 Apr 2012 22:23:45 -0500
changeset 16419 784606ae0029
parent 16418 e5750c6716eb
child 16420 4df2d335b8f6
changegroupsubset: renest inner loop The mdata list should generally be shorter than changedfiles
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Apr 13 21:35:48 2012 -0500
+++ b/mercurial/localrepo.py	Fri Apr 13 22:23:45 2012 -0500
@@ -1848,8 +1848,8 @@
             elif revlog == mf:
                 clnode = mfs[x]
                 mdata = mf.readfast(x)
-                for f in changedfiles:
-                    if f in mdata:
+                for f in mdata:
+                    if f in changedfiles:
                         fnodes.setdefault(f, {}).setdefault(mdata[f], clnode)
                 count[0] += 1
                 self.ui.progress(_('bundling'), count[0],