changegroupsubset: renest inner loop

The mdata list should generally be shorter than changedfiles
This commit is contained in:
Matt Mackall 2012-04-13 22:23:45 -05:00
parent 4e0b41f193
commit 4a60e2504d

View File

@ -1848,8 +1848,8 @@ class localrepository(repo.repository):
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],