comparison mercurial/localrepo.py @ 16419:784606ae0029

changegroupsubset: renest inner loop The mdata list should generally be shorter than changedfiles
author Matt Mackall <mpm@selenic.com>
date Fri, 13 Apr 2012 22:23:45 -0500
parents def789752b60
children 4df2d335b8f6
comparison
equal deleted inserted replaced
16418:e5750c6716eb 16419:784606ae0029
1846 unit=_('changesets'), total=len(csets)) 1846 unit=_('changesets'), total=len(csets))
1847 return x 1847 return x
1848 elif revlog == mf: 1848 elif revlog == mf:
1849 clnode = mfs[x] 1849 clnode = mfs[x]
1850 mdata = mf.readfast(x) 1850 mdata = mf.readfast(x)
1851 for f in changedfiles: 1851 for f in mdata:
1852 if f in mdata: 1852 if f in changedfiles:
1853 fnodes.setdefault(f, {}).setdefault(mdata[f], clnode) 1853 fnodes.setdefault(f, {}).setdefault(mdata[f], clnode)
1854 count[0] += 1 1854 count[0] += 1
1855 self.ui.progress(_('bundling'), count[0], 1855 self.ui.progress(_('bundling'), count[0],
1856 unit=_('manifests'), total=len(mfs)) 1856 unit=_('manifests'), total=len(mfs))
1857 return mfs[x] 1857 return mfs[x]