changeset 31870:49011f1cedd4

upgrade: drop the prefix to the 'supporteddestrequirements' 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 18:04:50 +0200
parents fe5e30b58934
children 5881f76323c2
files mercurial/upgrade.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Mon Apr 10 18:03:11 2017 +0200
+++ b/mercurial/upgrade.py	Mon Apr 10 18:04:50 2017 +0200
@@ -62,7 +62,7 @@
     """
     return set()
 
-def upgradesupporteddestrequirements(repo):
+def supporteddestrequirements(repo):
     """Obtain requirements that upgrade supports in the destination.
 
     If the result of the upgrade would create requirements not in this set,
@@ -280,7 +280,7 @@
     """
     newactions = []
 
-    knownreqs = upgradesupporteddestrequirements(repo)
+    knownreqs = supporteddestrequirements(repo)
 
     for i in improvements:
         name = i.name
@@ -619,7 +619,7 @@
                             'requirement: %s') %
                           _(', ').join(sorted(noaddreqs)))
 
-    unsupportedreqs = newreqs - upgradesupporteddestrequirements(repo)
+    unsupportedreqs = newreqs - supporteddestrequirements(repo)
     if unsupportedreqs:
         raise error.Abort(_('cannot upgrade repository; do not support '
                             'destination requirement: %s') %