changectx: mark parent of changesets as non filtered
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 21 Nov 2019 17:27:44 +0100
changeset 44109 98349eddceef
parent 44108 c472970339d2
child 44110 6ae32c12b578
changectx: mark parent of changesets as non filtered If a node is not filtered, its parents cannot be filtered. Differential Revision: https://phab.mercurial-scm.org/D7502
mercurial/context.py
--- a/mercurial/context.py	Thu Nov 21 23:46:51 2019 +0100
+++ b/mercurial/context.py	Thu Nov 21 17:27:44 2019 +0100
@@ -533,8 +533,11 @@
 
         p1, p2 = cl.parentrevs(self._rev)
         if p2 == nullrev:
-            return [repo[p1]]
-        return [repo[p1], repo[p2]]
+            return [changectx(repo, p1, cl.node(p1), maybe_filtered=False)]
+        return [
+            changectx(repo, p1, cl.node(p1), maybe_filtered=False),
+            changectx(repo, p2, cl.node(p2), maybe_filtered=False),
+        ]
 
     def changeset(self):
         c = self._changeset