Mercurial > hg
diff hgext/narrow/narrowrepo.py @ 37380:c3c76194f0c1
narrow: remove unused "cacheprop" stuff
This is unused since D3046. I didn't even notice it then, but tests
still pass so I hope it's still handled safely.
Differential Revision: https://phab.mercurial-scm.org/D3142
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 05 Apr 2018 12:36:44 -0700 |
parents | ac42e39b1b77 |
children | 1cba497491be |
line wrap: on
line diff
--- a/hgext/narrow/narrowrepo.py Tue Apr 03 14:11:43 2018 -0700 +++ b/hgext/narrow/narrowrepo.py Thu Apr 05 12:36:44 2018 -0700 @@ -8,10 +8,8 @@ from __future__ import absolute_import from mercurial import ( - bundlerepo, changegroup, hg, - localrepo, narrowspec, scmutil, ) @@ -40,14 +38,6 @@ def wraprepo(repo): """Enables narrow clone functionality on a single local repository.""" - cacheprop = localrepo.storecache - if isinstance(repo, bundlerepo.bundlerepository): - # We have to use a different caching property decorator for - # bundlerepo because storecache blows up in strange ways on a - # bundlerepo. Fortunately, there's no risk of data changing in - # a bundlerepo. - cacheprop = lambda name: localrepo.unfilteredpropertycache - class narrowrepository(repo.__class__): def file(self, f):