mercurial/localrepo.py
changeset 44852 fd3b94f1712d
parent 44835 09da5cf44772
parent 44826 35b255e474d9
child 44856 b7808443ed6a
--- a/mercurial/localrepo.py	Sun May 17 18:33:45 2020 -0400
+++ b/mercurial/localrepo.py	Tue May 26 08:07:24 2020 -0700
@@ -1456,6 +1456,8 @@
 
     @storecache(b'00changelog.i')
     def changelog(self):
+        # load dirstate before changelog to avoid race see issue6303
+        self.dirstate.prefetch_parents()
         return self.store.changelog(txnutil.mayhavepending(self.root))
 
     @storecache(b'00manifest.i')