upgrade: drop the prefix to the 'supportremovedrequirements' function
Now that we are in the 'upgrade' module we can simplify the name.
--- 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)))