hgext/largefiles/overrides.py
changeset 50138 270dc01481af
parent 50103 5a0c1d70ebcf
child 50139 ce657d7b7c39
--- a/hgext/largefiles/overrides.py	Wed Feb 22 00:21:57 2023 +0100
+++ b/hgext/largefiles/overrides.py	Wed Feb 22 00:22:16 2023 +0100
@@ -920,7 +920,7 @@
     # Because we put the standins in a bad state (by updating them)
     # and then return them to a correct state we need to lock to
     # prevent others from changing them in their incorrect state.
-    with repo.wlock():
+    with repo.wlock(), repo.dirstate.running_status(repo):
         lfdirstate = lfutil.openlfdirstate(ui, repo)
         s = lfutil.lfdirstatestatus(lfdirstate, repo)
         lfdirstate.write(repo.currenttransaction())