D7236: repoview: wrap changelog class when filtering
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Nov 6 03:37:42 UTC 2019
Closed by commit rHGdc34c78d1c01: repoview: wrap changelog class when filtering (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/D7236?vs=17566&id=17586
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7236/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7236
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
@@ -220,6 +220,12 @@
def wrapchangelog(unfichangelog, filteredrevs):
cl = copy.copy(unfichangelog)
cl.filteredrevs = filteredrevs
+
+ class filteredchangelog(cl.__class__):
+ pass
+
+ cl.__class__ = filteredchangelog
+
return cl
class repoview(object):
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list