# HG changeset patch # User Joerg Sonnenberger # Date 1607336614 -3600 # Node ID 88de2639901b7983a8ba104865fcc4f77699ebfc # Parent 14ff4929ca8ce1a2f55861ba0ce1d65ef8e9d18d transaction: windows workaround for missing line iteration support The mixedfilemodewrapper doesn't support line iteration, so just read the whole file in one go. Differential Revision: https://phab.mercurial-scm.org/D9532 diff -r 14ff4929ca8c -r 88de2639901b mercurial/transaction.py --- a/mercurial/transaction.py Sat Nov 28 15:04:44 2020 +0100 +++ b/mercurial/transaction.py Mon Dec 07 11:23:34 2020 +0100 @@ -418,7 +418,7 @@ def readjournal(self): self._file.seek(0) entries = [] - for l in self._file: + for l in self._file.readlines(): file, troffset = l.split(b'\0') entries.append((file, int(troffset))) return entries