changeset 31873:d6c2005484b6

upgrade: drop the prefix to the '_filterstorefile' function Now that we are in the 'upgrade' module we can simplify the name.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 10 Apr 2017 18:06:12 +0200
parents 3c001db97c71
children 27ec6517e40e
files mercurial/upgrade.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Mon Apr 10 18:05:57 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:06:12 2017 +0200
@@ -456,7 +456,7 @@
     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 @@
 
     # 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