Mercurial > hg
diff tests/simplestorerepo.py @ 39546:41aa5dced975
localrepo: pass ui to newreporequirements() (API)
newreporequirements() is called as part of creating a new repository.
It doesn't make much sense for it to receive a repo instance as part
of determining what requirements for new repos should be.
.. api::
localrepo.newreporequirements() receives a ui instead of a repo
Differential Revision: https://phab.mercurial-scm.org/D4533
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 07 Sep 2018 15:57:55 -0700 |
parents | 3682b49e0213 |
children | 2cd93a8d4bde |
line wrap: on
line diff
--- a/tests/simplestorerepo.py Tue Sep 11 15:40:33 2018 -0700 +++ b/tests/simplestorerepo.py Fri Sep 07 15:57:55 2018 -0700 @@ -712,9 +712,9 @@ def featuresetup(ui, supported): supported.add(REQUIREMENT) -def newreporequirements(orig, repo): +def newreporequirements(orig, ui): """Modifies default requirements for new repos to use the simple store.""" - requirements = orig(repo) + requirements = orig(ui) # These requirements are only used to affect creation of the store # object. We have our own store. So we can remove them.