# HG changeset patch # User Pierre-Yves David <pierre-yves.da...@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. 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(): _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel