##// END OF EJS Templates
upgrade: walk the source store file only once...
marmoute -
r42916:896fb9de default
parent child Browse files
Show More
@@ -554,9 +554,11 b' def _copyrevlogs(ui, srcrepo, dstrepo, t'
554 554 crawsize = 0
555 555 cdstsize = 0
556 556
557 alldatafiles = list(srcrepo.store.walk())
558
557 559 # Perform a pass to collect metadata. This validates we can open all
558 560 # source files and allows a unified progress bar to be displayed.
559 for unencoded, encoded, size in srcrepo.store.walk():
561 for unencoded, encoded, size in alldatafiles:
560 562 if unencoded.endswith('.d'):
561 563 continue
562 564
@@ -607,7 +609,7 b' def _copyrevlogs(ui, srcrepo, dstrepo, t'
607 609 # Do the actual copying.
608 610 # FUTURE this operation can be farmed off to worker processes.
609 611 seen = set()
610 for unencoded, encoded, size in srcrepo.store.walk():
612 for unencoded, encoded, size in alldatafiles:
611 613 if unencoded.endswith('.d'):
612 614 continue
613 615
General Comments 0
You need to be logged in to leave comments. Login now