# HG changeset patch # User Pierre-Yves David # Date 1491840382 -7200 # Node ID 27ec6517e40ead7e0d450f1836da29d5a97d2a09 # Parent d6c2005484b60ad776ea56cf70fb7ce4eabe91c5 upgrade: drop the prefix to the '_finishdatamigration' function Now that we are in the 'upgrade' module we can simplify the name. diff -r d6c2005484b6 -r 27ec6517e40e 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'))