changeset 50136:b38b53c5674e

large-files: wrap reposetup's status in a `running_status` context This is the way.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 22 Feb 2023 00:19:00 +0100
parents 31be0b46fd47
children 302772099ac4
files hgext/largefiles/reposetup.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Wed Feb 22 00:41:27 2023 +0100
+++ b/hgext/largefiles/reposetup.py	Wed Feb 22 00:19:00 2023 +0100
@@ -139,7 +139,7 @@
             except error.LockError:
                 wlock = util.nullcontextmanager()
                 gotlock = False
-            with wlock:
+            with wlock, self.dirstate.running_status(self):
 
                 # First check if paths or patterns were specified on the
                 # command line.  If there were, and they don't match any
@@ -321,6 +321,8 @@
 
                 if gotlock:
                     lfdirstate.write(self.currenttransaction())
+                else:
+                    lfdirstate.invalidate()
 
             self.lfstatus = True
             return scmutil.status(*result)