Patchwork D7236: repoview: wrap changelog class when filtering

login
register
mail settings
Submitter phabricator
Date Nov. 6, 2019, 3:37 a.m.
Message ID <b279eae9338197f6ce0c7f0f3f46102e@localhost.localdomain>
Download mbox | patch
Permalink /patch/42781/
State Not Applicable
Headers show

Comments

phabricator - Nov. 6, 2019, 3:37 a.m.
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




To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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):