Mercurial > public > mercurial-scm > hg-stable
diff mercurial/transaction.py @ 46067:88de2639901b
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
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Mon, 07 Dec 2020 11:23:34 +0100 |
parents | 89a2afe31e82 |
children | d4ba4d51f85f |
line wrap: on
line diff
--- 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