##// END OF EJS Templates
engine: make hook point for extension a public function...
Pulkit Goyal -
r46836:481d9aed default
parent child Browse files
Show More
@@ -524,7 +524,7 b' def uploadblobs(repo, pointers):'
524 remoteblob.writebatch(pointers, repo.svfs.lfslocalblobstore)
524 remoteblob.writebatch(pointers, repo.svfs.lfslocalblobstore)
525
525
526
526
527 @eh.wrapfunction(upgrade_engine, b'_finishdatamigration')
527 @eh.wrapfunction(upgrade_engine, b'finishdatamigration')
528 def upgradefinishdatamigration(orig, ui, srcrepo, dstrepo, requirements):
528 def upgradefinishdatamigration(orig, ui, srcrepo, dstrepo, requirements):
529 orig(ui, srcrepo, dstrepo, requirements)
529 orig(ui, srcrepo, dstrepo, requirements)
530
530
@@ -408,7 +408,7 b' def _filterstorefile(srcrepo, dstrepo, r'
408 return True
408 return True
409
409
410
410
411 def _finishdatamigration(ui, srcrepo, dstrepo, requirements):
411 def finishdatamigration(ui, srcrepo, dstrepo, requirements):
412 """Hook point for extensions to perform additional actions during upgrade.
412 """Hook point for extensions to perform additional actions during upgrade.
413
413
414 This function is called after revlogs and store files have been copied but
414 This function is called after revlogs and store files have been copied but
@@ -458,7 +458,7 b' def upgrade(ui, srcrepo, dstrepo, upgrad'
458 dst = dstrepo.store.rawvfs.join(p)
458 dst = dstrepo.store.rawvfs.join(p)
459 util.copyfile(src, dst, copystat=True)
459 util.copyfile(src, dst, copystat=True)
460
460
461 _finishdatamigration(ui, srcrepo, dstrepo, requirements)
461 finishdatamigration(ui, srcrepo, dstrepo, requirements)
462
462
463 ui.status(_(b'data fully migrated to temporary repository\n'))
463 ui.status(_(b'data fully migrated to temporary repository\n'))
464
464
General Comments 0
You need to be logged in to leave comments. Login now