upgrade: drop the prefix to the 'blocksourcerequirements' function
Now that we are in the 'upgrade' module we can simplify the name.
--- a/mercurial/upgrade.py Mon Apr 10 17:55:47 2017 +0200
+++ b/mercurial/upgrade.py Mon Apr 10 17:56:29 2017 +0200
@@ -35,7 +35,7 @@
'store',
])
-def upgradeblocksourcerequirements(repo):
+def blocksourcerequirements(repo):
"""Obtain requirements that will prevent an upgrade from occurring.
An upgrade cannot be performed if the source repository contains a
@@ -596,7 +596,7 @@
raise error.Abort(_('cannot upgrade repository; requirement '
'missing: %s') % _(', ').join(sorted(missingreqs)))
- blockedreqs = upgradeblocksourcerequirements(repo) & repo.requirements
+ blockedreqs = blocksourcerequirements(repo) & repo.requirements
if blockedreqs:
raise error.Abort(_('cannot upgrade repository; unsupported source '
'requirement: %s') %