# HG changeset patch # User Pierre-Yves David # Date 2017-04-10 16:03:11 # Node ID fe5e30b589340391431448e135ffd76624efc451 # Parent 9f84ccb1b28237853bc37242737c56643f6f4229 upgrade: drop the prefix to the 'allowednewrequirements' 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 @@ -78,7 +78,7 @@ def upgradesupporteddestrequirements(rep '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 @@ def upgraderepo(ui, repo, run=False, opt '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') %