changeset 49619:302dd8ae2745 stable

dirstate-v2: do not put the dirstate data file in a transaction, since the transaction reverts the store, while the dirstate is stored separately
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 17 Nov 2022 14:37:43 +0000
parents 3adca6eb6659
children 8cd39c20445e
files mercurial/dirstatemap.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstatemap.py	Fri Nov 18 13:43:03 2022 -0500
+++ b/mercurial/dirstatemap.py	Thu Nov 17 14:37:43 2022 +0000
@@ -612,8 +612,6 @@
             if append:
                 docket = self.docket
                 data_filename = docket.data_filename()
-                if tr:
-                    tr.add(data_filename, docket.data_size)
                 with self._opener(data_filename, b'r+b') as fp:
                     fp.seek(docket.data_size)
                     assert fp.tell() == docket.data_size