mercurial/upgrade.py
changeset 31873 d6c2005484b6
parent 31872 3c001db97c71
child 31874 27ec6517e40e
--- 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