Skip to content
Snippets Groups Projects
Commit 9ce4e01f authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

repoview: do not include filter name in name of proxy class

The type object is shared across all filters. I'll add __repr__() instead.
parent d73ccc63
No related branches found
No related tags found
No related merge requests found
......@@ -688,11 +688,10 @@
key = self.unfiltered().__class__
if key not in self._filteredrepotypes:
# Build a new type with the repoview mixin and the base
# class of this repo. Give it a name containing the
# filter name to aid debugging.
bases = (repoview.repoview, key)
cls = type(r'%sfilteredrepo' % name, bases, {})
self._filteredrepotypes[key] = cls
# class of this repo.
class filteredrepo(repoview.repoview, key):
pass
self._filteredrepotypes[key] = filteredrepo
return self._filteredrepotypes[key](self, name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment