From patchwork Mon Apr 10 16:49:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [11, of, 11] upgrade: drop the prefix to the '_finishdatamigration' function From: Pierre-Yves David X-Patchwork-Id: 20082 Message-Id: <9edd96848f91a5dfe6e7.1491842942@nodosa.octopoid.net> To: mercurial-devel@mercurial-scm.org Cc: Gregory Szorc Date: Mon, 10 Apr 2017 18:49:02 +0200 # HG changeset patch # User Pierre-Yves David # Date 1491840382 -7200 # Mon Apr 10 18:06:22 2017 +0200 # Node ID 9edd96848f91a5dfe6e713846b968483a8a28618 # Parent ac8de371f662e5647d68cd67b721d6a0c37f1340 # EXP-Topic upgraderepo # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 9edd96848f91 upgrade: drop the prefix to the '_finishdatamigration' function Now that we are in the 'upgrade' module we can simplify the name. diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py --- a/mercurial/upgrade.py +++ b/mercurial/upgrade.py @@ -487,7 +487,7 @@ def _filterstorefile(srcrepo, dstrepo, r 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 @@ def _upgraderepo(ui, srcrepo, dstrepo, r 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'))