Comments
Patch
@@ -495,9 +495,9 @@ class localrepository(object):
"""Return a filtered version of a repository"""
# build a new class with the mixin and the current class
# (possibly subclass of the repo)
- class filteredrepo(repoview.repoview, self.unfiltered().__class__):
- pass
- return filteredrepo(self, name)
+ bases = (repoview.repoview, self.unfiltered().__class__)
+ cls = type('%sfilteredrepo' % name, bases, {})
+ return cls(self, name)
@repofilecache('bookmarks', 'bookmarks.current')
def _bookmarks(self):