522 with dstrepo.transaction('upgrade') as tr: |
522 with dstrepo.transaction('upgrade') as tr: |
523 _copyrevlogs(ui, srcrepo, dstrepo, tr, deltareuse, |
523 _copyrevlogs(ui, srcrepo, dstrepo, tr, deltareuse, |
524 'redeltamultibase' in actions) |
524 'redeltamultibase' in actions) |
525 |
525 |
526 # Now copy other files in the store directory. |
526 # Now copy other files in the store directory. |
527 for p, kind, st in srcrepo.store.vfs.readdir('', stat=True): |
527 # The sorted() makes execution deterministic. |
|
528 for p, kind, st in sorted(srcrepo.store.vfs.readdir('', stat=True)): |
528 if not _filterstorefile(srcrepo, dstrepo, requirements, |
529 if not _filterstorefile(srcrepo, dstrepo, requirements, |
529 p, kind, st): |
530 p, kind, st): |
530 continue |
531 continue |
531 |
532 |
532 srcrepo.ui.write(_('copying %s\n') % p) |
533 srcrepo.ui.write(_('copying %s\n') % p) |
533 src = srcrepo.store.vfs.join(p) |
534 src = srcrepo.store.rawvfs.join(p) |
534 dst = dstrepo.store.vfs.join(p) |
535 dst = dstrepo.store.rawvfs.join(p) |
535 util.copyfile(src, dst, copystat=True) |
536 util.copyfile(src, dst, copystat=True) |
536 |
537 |
537 _finishdatamigration(ui, srcrepo, dstrepo, requirements) |
538 _finishdatamigration(ui, srcrepo, dstrepo, requirements) |
538 |
539 |
539 ui.write(_('data fully migrated to temporary repository\n')) |
540 ui.write(_('data fully migrated to temporary repository\n')) |