# HG changeset patch # User Pierre-Yves David # Date 2023-02-21 23:21:57 # Node ID 302772099ac435347c985a203783a9b7ef39004a # Parent b38b53c5674e221da9498e444cd6a200666172be large-files: use `running_status` in `updatestandinsbymatch` This is the way. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -691,11 +691,16 @@ def updatestandinsbymatch(repo, match): # It can cost a lot of time (several seconds) # otherwise to update all standins if the largefiles are # large. - lfdirstate = openlfdirstate(ui, repo) dirtymatch = matchmod.always() - unsure, s, mtime_boundary = lfdirstate.status( - dirtymatch, subrepos=[], ignored=False, clean=False, unknown=False - ) + with repo.dirstate.running_status(repo): + lfdirstate = openlfdirstate(ui, repo) + unsure, s, mtime_boundary = lfdirstate.status( + dirtymatch, + subrepos=[], + ignored=False, + clean=False, + unknown=False, + ) modifiedfiles = unsure + s.modified + s.added + s.removed lfiles = listlfiles(repo) # this only loops through largefiles that exist (not