changeset 31866:1454726b6d7c

upgrade: drop the prefix to the 'blocksourcerequirements' function Now that we are in the 'upgrade' module we can simplify the name.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 10 Apr 2017 17:56:29 +0200
parents 5dcaa0f4455b
children cc60b6c36637
files mercurial/upgrade.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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') %