equal
deleted
inserted
replaced
470 _filteredrepotypes = weakref.WeakKeyDictionary() |
470 _filteredrepotypes = weakref.WeakKeyDictionary() |
471 |
471 |
472 |
472 |
473 def newtype(base): |
473 def newtype(base): |
474 """Create a new type with the repoview mixin and the given base class""" |
474 """Create a new type with the repoview mixin and the given base class""" |
475 if base not in _filteredrepotypes: |
475 cls = _filteredrepotypes.get(base) |
476 |
476 if cls is not None: |
477 class filteredrepo(repoview, base): |
477 return cls |
478 pass |
478 |
479 |
479 class filteredrepo(repoview, base): |
480 _filteredrepotypes[base] = filteredrepo |
480 pass |
481 return _filteredrepotypes[base] |
481 |
|
482 _filteredrepotypes[base] = filteredrepo |
|
483 return filteredrepo |