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