Mercurial > hg-stable
diff tests/test-fncache.t @ 39714:f44187605315
localrepo: move store() from store module
I want logic related to requirements handling to be in the localrepo
module so it is all in one place.
I would have loved to inline this logic. Unfortunately, statichttprepo
also calls it. I didn't want to inline it twice. We could potentially
refactor statichttppeer. But meh.
Differential Revision: https://phab.mercurial-scm.org/D4574
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 12 Sep 2018 15:07:27 -0700 |
parents | f1186c292d03 |
children | c8f164061212 |
line wrap: on
line diff
--- a/tests/test-fncache.t Wed Sep 12 15:05:51 2018 -0700 +++ b/tests/test-fncache.t Wed Sep 12 15:07:27 2018 -0700 @@ -448,7 +448,7 @@ $ cat > fncacheloadwarn.py << EOF > from __future__ import absolute_import - > from mercurial import extensions, store + > from mercurial import extensions, localrepo > > def extsetup(ui): > def wrapstore(orig, requirements, *args): @@ -456,7 +456,7 @@ > if 'store' in requirements and 'fncache' in requirements: > instrumentfncachestore(store, ui) > return store - > extensions.wrapfunction(store, 'store', wrapstore) + > extensions.wrapfunction(localrepo, 'makestore', wrapstore) > > def instrumentfncachestore(fncachestore, ui): > class instrumentedfncache(type(fncachestore.fncache)):