upgrade: drop the prefix to the 'allowednewrequirements' function
Now that we are in the 'upgrade' module we can simplify the name.
--- a/mercurial/upgrade.py Mon Apr 10 18:01:29 2017 +0200
+++ b/mercurial/upgrade.py Mon Apr 10 18:03:11 2017 +0200
@@ -78,7 +78,7 @@
'store',
])
-def upgradeallowednewrequirements(repo):
+def allowednewrequirements(repo):
"""Obtain requirements that can be added to a repository during upgrade.
This is used to disallow proposed requirements from being added when
@@ -613,7 +613,7 @@
'removed: %s') % _(', ').join(sorted(noremovereqs)))
noaddreqs = (newreqs - repo.requirements -
- upgradeallowednewrequirements(repo))
+ allowednewrequirements(repo))
if noaddreqs:
raise error.Abort(_('cannot upgrade repository; do not support adding '
'requirement: %s') %