As suggested by Greg. This makes it easier for extensions to override
the filtering.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Comment Actions
+ cl.class = type('filteredchangelog',
+ (filteredchangelogmixin, cl.class),
+ {})
Nit: maybe this can be just class filteredchangelog(...): pass since
we don't name the type dynamically.
And we might need a class cache like _filteredrepotypes to work around
leaks of dynamically-created types.
Comment Actions
Done in https://www.mercurial-scm.org/repo/hg/rev/85628a595c37.
And we might need a class cache like _filteredrepotypes to work around
leaks of dynamically-created types.
It seems like there's some caching in _clcache already. Maybe that's enough?
Comment Actions
> And we might need a class cache like _filteredrepotypes to work around > leaks of dynamically-created types. It seems like there's some caching in `_clcache` already. Maybe that's enough?
Maybe not because clcache won't live longer than the repo instance, but
I have no idea if that actually impact the leak seen in hgweb.