hgext/largefiles/lfutil.py
changeset 50116 9b49809eb612
parent 50050 22cd517bc6b0
child 50123 4e95341c89aa
--- a/hgext/largefiles/lfutil.py	Mon Feb 20 14:06:15 2023 +0100
+++ b/hgext/largefiles/lfutil.py	Tue Feb 21 03:22:51 2023 +0100
@@ -249,6 +249,8 @@
                         wc_tracked=True,
                         possibly_dirty=True,
                     )
+                # avoid getting dirty dirstate before other operations
+                lfdirstate.write(repo.currenttransaction())
         except error.LockError:
             # Assume that whatever was holding the lock was important.
             # If we were doing something important, we would already have