##// END OF EJS Templates
exchangev2: add progress bar around manifest scanning...
Gregory Szorc -
r40071:7a347d36 default
parent child Browse files
Show More
@@ -320,19 +320,25 b' def _derivefilesfrommanifests(repo, mani'
320 ml = repo.manifestlog
320 ml = repo.manifestlog
321 fnodes = collections.defaultdict(dict)
321 fnodes = collections.defaultdict(dict)
322
322
323 for manifestnode in manifestnodes:
323 progress = repo.ui.makeprogress(
324 m = ml.get(b'', manifestnode)
324 _('scanning manifests'), total=len(manifestnodes))
325
326 with progress:
327 for manifestnode in manifestnodes:
328 m = ml.get(b'', manifestnode)
325
329
326 # TODO this will pull in unwanted nodes because it takes the storage
330 # TODO this will pull in unwanted nodes because it takes the storage
327 # delta into consideration. What we really want is something that takes
331 # delta into consideration. What we really want is something that
328 # the delta between the manifest's parents. And ideally we would
332 # takes the delta between the manifest's parents. And ideally we
329 # ignore file nodes that are known locally. For now, ignore both
333 # would ignore file nodes that are known locally. For now, ignore
330 # these limitations. This will result in incremental fetches requesting
334 # both these limitations. This will result in incremental fetches
331 # data we already have. So this is far from ideal.
335 # requesting data we already have. So this is far from ideal.
332 md = m.readfast()
336 md = m.readfast()
333
337
334 for path, fnode in md.items():
338 for path, fnode in md.items():
335 fnodes[path].setdefault(fnode, manifestnode)
339 fnodes[path].setdefault(fnode, manifestnode)
340
341 progress.increment()
336
342
337 return fnodes
343 return fnodes
338
344
General Comments 0
You need to be logged in to leave comments. Login now