mercurial/context.py
changeset 39959 43d3b09b3e5a
parent 39958 3d35304bd09b
child 40044 ccf4d808ec4c
--- a/mercurial/context.py	Wed Sep 26 22:53:14 2018 -0700
+++ b/mercurial/context.py	Wed Sep 26 23:09:28 2018 -0700
@@ -1241,7 +1241,9 @@
         p = self._repo.dirstate.parents()
         if p[1] == nullid:
             p = p[:-1]
-        return [self._repo[x] for x in p]
+        # 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]
 
     def _fileinfo(self, path):
         # populate __dict__['_manifest'] as workingctx has no _manifestdelta