upgrade: drop the prefix to the '_finishdatamigration' function
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 10 Apr 2017 18:06:22 +0200
changeset 31874 27ec6517e40e
parent 31873 d6c2005484b6
child 31875 b6d792a9bd11
upgrade: drop the prefix to the '_finishdatamigration' function Now that we are in the 'upgrade' module we can simplify the name.
mercurial/upgrade.py
--- a/mercurial/upgrade.py	Mon Apr 10 18:06:12 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:06:22 2017 +0200
@@ -487,7 +487,7 @@
 
     return True
 
-def _upgradefinishdatamigration(ui, srcrepo, dstrepo, requirements):
+def _finishdatamigration(ui, srcrepo, dstrepo, requirements):
     """Hook point for extensions to perform additional actions during upgrade.
 
     This function is called after revlogs and store files have been copied but
@@ -534,7 +534,7 @@
         dst = dstrepo.store.vfs.join(p)
         util.copyfile(src, dst, copystat=True)
 
-    _upgradefinishdatamigration(ui, srcrepo, dstrepo, requirements)
+    _finishdatamigration(ui, srcrepo, dstrepo, requirements)
 
     ui.write(_('data fully migrated to temporary repository\n'))