# HG changeset patch # User Pierre-Yves David <pierre-yves.da...@ens-lyon.org> # Date 1491840372 -7200 # Mon Apr 10 18:06:12 2017 +0200 # Node ID ac8de371f662e5647d68cd67b721d6a0c37f1340 # Parent 29cc274ada6b712913eceb9fccdd1984390c7d34 # 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 ac8de371f662 upgrade: drop the prefix to the '_filterstorefile' 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 @@ -456,7 +456,7 @@ def _copyrevlogs(ui, srcrepo, dstrepo, t ui.write(_('finished migrating %d total revisions; total change in store ' 'size: %s\n') % (revcount, util.bytecount(dstsize - srcsize))) -def _upgradefilterstorefile(srcrepo, dstrepo, requirements, path, mode, st): +def _filterstorefile(srcrepo, dstrepo, requirements, path, mode, st): """Determine whether to copy a store file during upgrade. This function is called when migrating store files from ``srcrepo`` to @@ -525,7 +525,7 @@ def _upgraderepo(ui, srcrepo, dstrepo, r # Now copy other files in the store directory. for p, kind, st in srcrepo.store.vfs.readdir('', stat=True): - if not _upgradefilterstorefile(srcrepo, dstrepo, requirements, + if not _filterstorefile(srcrepo, dstrepo, requirements, p, kind, st): continue _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel