changeset 31867:cc60b6c36637

upgrade: drop the prefix to the 'supportremovedrequirements' 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:00:27 +0200
parents 1454726b6d7c
children 9f84ccb1b282
files mercurial/upgrade.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Mon Apr 10 17:56:29 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:00:27 2017 +0200
@@ -53,7 +53,7 @@
         'shared',
     ])
 
-def upgradesupportremovedrequirements(repo):
+def supportremovedrequirements(repo):
     """Obtain requirements that can be removed during an upgrade.
 
     If an upgrade were to create a repository that dropped a requirement,
@@ -607,7 +607,7 @@
     newreqs = localrepo.newreporequirements(repo)
 
     noremovereqs = (repo.requirements - newreqs -
-                   upgradesupportremovedrequirements(repo))
+                   supportremovedrequirements(repo))
     if noremovereqs:
         raise error.Abort(_('cannot upgrade repository; requirement would be '
                             'removed: %s') % _(', ').join(sorted(noremovereqs)))