diff hgext/largefiles/reposetup.py @ 48168:df3021c1f093

largefiles: pass current transaction to `lfdirstate.write()` Right now, the largefile dirstate is not included in transaction which makes things complex. Next patch will add code to do so, so let's make it mandatory to pass current transaction and pass from all existing callers. Differential Revision: https://phab.mercurial-scm.org/D11610
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Jul 2021 04:11:08 +0530
parents 108c4c5673a6
children 991e6f728b50
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Thu Oct 07 10:23:57 2021 -0400
+++ b/hgext/largefiles/reposetup.py	Mon Jul 19 04:11:08 2021 +0530
@@ -310,7 +310,7 @@
                     ]
 
                 if gotlock:
-                    lfdirstate.write()
+                    lfdirstate.write(self.currenttransaction())
 
             self.lfstatus = True
             return scmutil.status(*result)