changectx: mark the parents of the working copy as non filtered
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 23 Nov 2019 16:54:59 -0800
changeset 43767 f3b23d5c15fd
parent 43766 d4c2221240a6
child 43768 fe73ec69350e
changectx: mark the parents of the working copy as non filtered If we successfully accessed the working copy, its parents are not filtered. Differential Revision: https://phab.mercurial-scm.org/D7491
mercurial/context.py
--- a/mercurial/context.py	Thu Nov 21 19:56:47 2019 +0100
+++ b/mercurial/context.py	Sat Nov 23 16:54:59 2019 -0800
@@ -1518,7 +1518,12 @@
             p = p[:-1]
         # use unfiltered repo to delay/avoid loading obsmarkers
         unfi = self._repo.unfiltered()
-        return [changectx(self._repo, unfi.changelog.rev(n), n) for n in p]
+        return [
+            changectx(
+                self._repo, unfi.changelog.rev(n), n, maybe_filtered=False
+            )
+            for n in p
+        ]
 
     def _fileinfo(self, path):
         # populate __dict__['_manifest'] as workingctx has no _manifestdelta