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