upgrade: drop the prefix to the 'blocksourcerequirements' function
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 10 Apr 2017 17:56:29 +0200
changeset 31866 1454726b6d7c
parent 31865 5dcaa0f4455b
child 31867 cc60b6c36637
upgrade: drop the prefix to the 'blocksourcerequirements' 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: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') %