mercurial/localrepo.py
changeset 46607 e9901d01d135
parent 46414 16c18d5e5dc8
child 46626 ee91966aec0f
--- a/mercurial/localrepo.py	Tue Feb 23 22:58:30 2021 -0800
+++ b/mercurial/localrepo.py	Wed Feb 03 16:33:10 2021 -0800
@@ -84,7 +84,10 @@
     stringutil,
 )
 
-from .revlogutils import constants as revlogconst
+from .revlogutils import (
+    concurrency_checker as revlogchecker,
+    constants as revlogconst,
+)
 
 release = lockmod.release
 urlerr = util.urlerr
@@ -1639,7 +1642,10 @@
     def changelog(self):
         # load dirstate before changelog to avoid race see issue6303
         self.dirstate.prefetch_parents()
-        return self.store.changelog(txnutil.mayhavepending(self.root))
+        return self.store.changelog(
+            txnutil.mayhavepending(self.root),
+            concurrencychecker=revlogchecker.get_checker(self.ui, b'changelog'),
+        )
 
     @storecache(b'00manifest.i')
     def manifestlog(self):