hgext/largefiles/lfcommands.py
changeset 48168 df3021c1f093
parent 48116 5ced12cfa41b
child 48875 6000f5b25c9b
--- a/hgext/largefiles/lfcommands.py	Thu Oct 07 10:23:57 2021 -0400
+++ b/hgext/largefiles/lfcommands.py	Mon Jul 19 04:11:08 2021 +0530
@@ -569,7 +569,7 @@
                         removed += 1
 
         # largefile processing might be slow and be interrupted - be prepared
-        lfdirstate.write()
+        lfdirstate.write(repo.currenttransaction())
 
         if lfiles:
             lfiles = [f for f in lfiles if f not in dropped]
@@ -619,7 +619,7 @@
 
                 lfutil.synclfdirstate(repo, lfdirstate, lfile, normallookup)
 
-        lfdirstate.write()
+        lfdirstate.write(repo.currenttransaction())
         if lfiles:
             statuswriter(
                 _(b'%d largefiles updated, %d removed\n') % (updated, removed)