dirstate-v2: do not put the dirstate data file in a transaction, stable
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Thu, 17 Nov 2022 14:37:43 +0000
branchstable
changeset 49619 302dd8ae2745
parent 49618 3adca6eb6659
child 49620 8cd39c20445e
dirstate-v2: do not put the dirstate data file in a transaction, since the transaction reverts the store, while the dirstate is stored separately
mercurial/dirstatemap.py
--- 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