large-files: use `running_status` in `overriderevert`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 22 Feb 2023 00:22:16 +0100
changeset 50138 270dc01481af
parent 50137 302772099ac4
child 50139 ce657d7b7c39
large-files: use `running_status` in `overriderevert` This is the way
hgext/largefiles/overrides.py
--- 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())