Patchwork [09,of,11] upgrade: drop the prefix to the 'determineactions' function

login
register
mail settings
Submitter Pierre-Yves David
Date April 10, 2017, 4:49 p.m.
Message ID <29cc274ada6b712913ec.1491842940@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20081/
State Accepted
Headers show

Comments

Pierre-Yves David - April 10, 2017, 4:49 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1491840357 -7200
#      Mon Apr 10 18:05:57 2017 +0200
# Node ID 29cc274ada6b712913eceb9fccdd1984390c7d34
# Parent  845f34ca3f9edf4d9b440024d46b36b41b6e7372
# EXP-Topic upgraderepo
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 29cc274ada6b
upgrade: drop the prefix to the 'determineactions' function

Now that we are in the 'upgrade' module we can simplify the name.

Patch

diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py
--- a/mercurial/upgrade.py
+++ b/mercurial/upgrade.py
@@ -265,7 +265,7 @@  def findimprovements(repo):
 
     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 @@  def upgraderepo(ui, repo, run=False, opt
                           hint=_('run without arguments to see valid '
                                  'optimizations'))
 
-    actions = upgradedetermineactions(repo, improvements, repo.requirements,
+    actions = determineactions(repo, improvements, repo.requirements,
                                       newreqs, optimize)
 
     def printrequirements():