# HG changeset patch # User Pierre-Yves David # Date 2023-02-21 23:22:16 # Node ID 270dc01481aff5ef5e4749648566e7f83b64a9a5 # Parent 302772099ac435347c985a203783a9b7ef39004a large-files: use `running_status` in `overriderevert` This is the way diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -920,7 +920,7 @@ def overriderevert(orig, ui, repo, ctx, # 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())