# HG changeset patch # User Pierre-Yves David # Date 2017-04-10 15:55:47 # Node ID 5dcaa0f4455b36e4e5d340edc36e4c213a3ab670 # Parent 70d163b86316cbd65ed6cea8f76392589becc787 upgrade: drop the prefix to the 'requiredsourcerequirements' function Now that we are in the 'upgrade' module we can simplify the name. diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py --- a/mercurial/upgrade.py +++ b/mercurial/upgrade.py @@ -22,7 +22,7 @@ from . import ( vfs as vfsmod, ) -def upgraderequiredsourcerequirements(repo): +def requiredsourcerequirements(repo): """Obtain requirements required to be present to upgrade a repo. An upgrade will not be allowed if the repository doesn't have the @@ -591,7 +591,7 @@ def upgraderepo(ui, repo, run=False, opt repo = repo.unfiltered() # Ensure the repository can be upgraded. - missingreqs = upgraderequiredsourcerequirements(repo) - repo.requirements + missingreqs = requiredsourcerequirements(repo) - repo.requirements if missingreqs: raise error.Abort(_('cannot upgrade repository; requirement ' 'missing: %s') % _(', ').join(sorted(missingreqs)))