##// END OF EJS Templates
upgrade: drop the prefix to the 'requiredsourcerequirements' function...
Pierre-Yves David -
r31865:5dcaa0f4 default
parent child Browse files
Show More
@@ -22,7 +22,7 b' from . import ('
22 vfs as vfsmod,
22 vfs as vfsmod,
23 )
23 )
24
24
25 def upgraderequiredsourcerequirements(repo):
25 def requiredsourcerequirements(repo):
26 """Obtain requirements required to be present to upgrade a repo.
26 """Obtain requirements required to be present to upgrade a repo.
27
27
28 An upgrade will not be allowed if the repository doesn't have the
28 An upgrade will not be allowed if the repository doesn't have the
@@ -591,7 +591,7 b' def upgraderepo(ui, repo, run=False, opt'
591 repo = repo.unfiltered()
591 repo = repo.unfiltered()
592
592
593 # Ensure the repository can be upgraded.
593 # Ensure the repository can be upgraded.
594 missingreqs = upgraderequiredsourcerequirements(repo) - repo.requirements
594 missingreqs = requiredsourcerequirements(repo) - repo.requirements
595 if missingreqs:
595 if missingreqs:
596 raise error.Abort(_('cannot upgrade repository; requirement '
596 raise error.Abort(_('cannot upgrade repository; requirement '
597 'missing: %s') % _(', ').join(sorted(missingreqs)))
597 'missing: %s') % _(', ').join(sorted(missingreqs)))
General Comments 0
You need to be logged in to leave comments. Login now