changeset 31872:3c001db97c71

upgrade: drop the prefix to the 'determineactions' 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:57 +0200
parents 5881f76323c2
children d6c2005484b6
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:42 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:05:57 2017 +0200
@@ -265,7 +265,7 @@
 
     return improvements
 
-def upgradedetermineactions(repo, improvements, sourcereqs, destreqs,
+def determineactions(repo, improvements, sourcereqs, destreqs,
                             optimize):
     """Determine upgrade actions that will be performed.
 
@@ -641,7 +641,7 @@
                           hint=_('run without arguments to see valid '
                                  'optimizations'))
 
-    actions = upgradedetermineactions(repo, improvements, repo.requirements,
+    actions = determineactions(repo, improvements, repo.requirements,
                                       newreqs, optimize)
 
     def printrequirements():