changeset 44109:98349eddceef

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 21 Nov 2019 17:27:44 +0100
parents c472970339d2
children 6ae32c12b578
files mercurial/context.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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