D7364: repoview: use class literal for creating filteredchangelog
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Nov 8 22:34:42 UTC 2019
Closed by commit rHGd1b8fcc38991: repoview: use class literal for creating filteredchangelog (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7364?vs=17801&id=17803
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7364/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7364
AFFECTED FILES
mercurial/repoview.py
CHANGE DETAILS
diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -227,9 +227,10 @@
cl = copy.copy(unfichangelog)
cl.filteredrevs = filteredrevs
- cl.__class__ = type(
- 'filteredchangelog', (filteredchangelogmixin, cl.__class__), {}
- )
+ class filteredchangelog(filteredchangelogmixin, cl.__class__):
+ pass
+
+ cl.__class__ = filteredchangelog
return cl
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list