upgrade: drop the prefix to the 'supportremovedrequirements' function
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 10 Apr 2017 18:00:27 +0200
changeset 31867 cc60b6c36637
parent 31866 1454726b6d7c
child 31868 9f84ccb1b282
upgrade: drop the prefix to the 'supportremovedrequirements' function Now that we are in the 'upgrade' module we can simplify the name.
mercurial/upgrade.py
--- 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)))