# HG changeset patch # User Pierre-Yves David # Date 1491840372 -7200 # Node ID d6c2005484b60ad776ea56cf70fb7ce4eabe91c5 # Parent 3c001db97c7180a753a13a6293f4103e17815553 upgrade: drop the prefix to the '_filterstorefile' function Now that we are in the 'upgrade' module we can simplify the name. diff -r 3c001db97c71 -r d6c2005484b6 mercurial/upgrade.py --- 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