diff mercurial/revlog.py @ 47241:2219853a1503

revlogv2: track pending write in the docket and expose it to hooks The docket is now able to write pending data. We could have used a distinct intermediate files, however keeping everything in the same file will make it simpler to keep track of the various involved files if necessary. However it might prove more complicated for streaming clone. This will be dealt with later. Note that we lifted the stderr redirection in the test since we no longer suffer from "unkown working directory parent" message. Differential Revision: https://phab.mercurial-scm.org/D10631
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:35:25 +0200
parents 4f38ada3fc26
children 4abd474a10af
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon May 03 12:35:14 2021 +0200
+++ b/mercurial/revlog.py	Mon May 03 12:35:25 2021 +0200
@@ -529,7 +529,9 @@
             if self._initempty:
                 self._docket = docketutil.default_docket(self, header)
             else:
-                self._docket = docketutil.parse_docket(self, entry_data)
+                self._docket = docketutil.parse_docket(
+                    self, entry_data, use_pending=self._trypending
+                )
             self._indexfile = self._docket.index_filepath()
             index_data = b''
             index_size = self._docket.index_end