Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.py @ 35257:c752fbe228fb
repoview: extract a factory function of proxy class
This makes sure that dynamically-created class objects are isolated from
local binding of repo instances. The type cache is moved to module level
as it isn't tied to each instance.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 05 Dec 2017 21:50:33 +0900 |
parents | 3423f7e2d287 |
children | 24c2c760c1cb |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Tue Dec 05 21:37:30 2017 +0900 +++ b/mercurial/statichttprepo.py Tue Dec 05 21:50:33 2017 +0900 @@ -166,8 +166,6 @@ self.encodepats = None self.decodepats = None self._transref = None - # Cache of types representing filtered repos. - self._filteredrepotypes = {} def _restrictcapabilities(self, caps): caps = super(statichttprepository, self)._restrictcapabilities(caps)