mercurial/changelog.py
changeset 47241 2219853a1503
parent 47240 4f38ada3fc26
child 47383 659a452ee263
--- a/mercurial/changelog.py	Mon May 03 12:35:14 2021 +0200
+++ b/mercurial/changelog.py	Mon May 03 12:35:25 2021 +0200
@@ -395,7 +395,6 @@
         ``concurrencychecker`` will be passed to the revlog init function, see
         the documentation there.
         """
-
         revlog.revlog.__init__(
             self,
             opener,
@@ -484,6 +483,8 @@
     def _writepending(self, tr):
         """create a file containing the unfinalized state for
         pretxnchangegroup"""
+        if self._docket:
+            return self._docket.write(tr, pending=True)
         if self._delaybuf:
             # make a temporary copy of the index
             fp1 = self._realopener(self._indexfile)