Mercurial > hg
changeset 31869:fe5e30b58934
upgrade: drop the prefix to the 'allowednewrequirements' 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:03:11 +0200 |
parents | 9f84ccb1b282 |
children | 49011f1cedd4 |
files | mercurial/upgrade.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/upgrade.py Mon Apr 10 18:01:29 2017 +0200 +++ b/mercurial/upgrade.py Mon Apr 10 18:03:11 2017 +0200 @@ -78,7 +78,7 @@ 'store', ]) -def upgradeallowednewrequirements(repo): +def allowednewrequirements(repo): """Obtain requirements that can be added to a repository during upgrade. This is used to disallow proposed requirements from being added when @@ -613,7 +613,7 @@ 'removed: %s') % _(', ').join(sorted(noremovereqs))) noaddreqs = (newreqs - repo.requirements - - upgradeallowednewrequirements(repo)) + allowednewrequirements(repo)) if noaddreqs: raise error.Abort(_('cannot upgrade repository; do not support adding ' 'requirement: %s') %