changeset 31871:5881f76323c2

upgrade: drop the prefix to the 'findimprovements' 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:05:42 +0200
parents 49011f1cedd4
children 3c001db97c71
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:04:50 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:05:42 2017 +0200
@@ -138,7 +138,7 @@
         for k, v in kwargs.items():
             setattr(self, k, v)
 
-def upgradefindimprovements(repo):
+def findimprovements(repo):
     """Determine improvements that can be made to the repo during upgrade.
 
     Returns a list of ``upgradeimprovement`` describing repository deficiencies
@@ -626,7 +626,7 @@
                           _(', ').join(sorted(unsupportedreqs)))
 
     # Find and validate all improvements that can be made.
-    improvements = upgradefindimprovements(repo)
+    improvements = findimprovements(repo)
     for i in improvements:
         if i.type not in (deficiency, optimisation):
             raise error.Abort(_('unexpected improvement type %s for %s') % (