hgext/largefiles/lfutil.py
changeset 48169 1e98f9b5bc71
parent 48168 df3021c1f093
child 48382 991e6f728b50
--- a/hgext/largefiles/lfutil.py	Mon Jul 19 04:11:08 2021 +0530
+++ b/hgext/largefiles/lfutil.py	Mon Jul 19 04:12:14 2021 +0530
@@ -195,6 +195,8 @@
         # (1) disable PENDING mode always
         #     (lfdirstate isn't yet managed as a part of the transaction)
         # (2) avoid develwarn 'use dirstate.write with ....'
+        if tr:
+            tr.addbackup(b'largefiles/dirstate', location=b'plain')
         super(largefilesdirstate, self).write(None)