diff mercurial/repair.py @ 45869:63edc384d3b7

transaction: drop per-file extra data support At the moment, transactions support an optional extra data argument for all files to be stored in addition to the original offset. This is used in core only by the revlog inline to external data migration. It is used to memoize the number of revisions before the transaction. That number of can be computed during the walk easily, so drop the requirement. Differential Revision: https://phab.mercurial-scm.org/D9275
author Joerg Sonnenberger <joerg@bec.de>
date Sat, 07 Nov 2020 17:56:01 +0100
parents 10284ce3d5ed
children a985c4fb23ca
line wrap: on
line diff
--- a/mercurial/repair.py	Thu Nov 12 14:07:34 2020 -0800
+++ b/mercurial/repair.py	Sat Nov 07 17:56:01 2020 +0100
@@ -220,7 +220,7 @@
                 tr.endgroup()
 
                 for i in pycompat.xrange(offset, len(tr._entries)):
-                    file, troffset, ignore = tr._entries[i]
+                    file, troffset = tr._entries[i]
                     with repo.svfs(file, b'a', checkambig=True) as fp:
                         fp.truncate(troffset)
                     if troffset == 0: