comparison mercurial/debugcommands.py @ 44370:8374b69aef75

nodemap: track the total and unused amount of data in the rawdata file We need to keep that information around: * total data will allow transaction to start appending new information without confusing other reader. * unused data will allow to detect when we should regenerate new rawdata file. Differential Revision: https://phab.mercurial-scm.org/D7889
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Jan 2020 15:50:24 +0100
parents e41a164db7a9
children e80da7a63264
comparison
equal deleted inserted replaced
44369:e41a164db7a9 44370:8374b69aef75
2136 nm_data = nodemap.persisted_data(cl) 2136 nm_data = nodemap.persisted_data(cl)
2137 if nm_data is not None: 2137 if nm_data is not None:
2138 docket, data = nm_data 2138 docket, data = nm_data
2139 ui.write((b"uid: %s\n") % docket.uid) 2139 ui.write((b"uid: %s\n") % docket.uid)
2140 ui.write((b"tip-rev: %d\n") % docket.tip_rev) 2140 ui.write((b"tip-rev: %d\n") % docket.tip_rev)
2141 ui.write((b"data-length: %d\n") % docket.data_length)
2142 ui.write((b"data-unused: %d\n") % docket.data_unused)
2141 2143
2142 2144
2143 @command( 2145 @command(
2144 b'debugobsolete', 2146 b'debugobsolete',
2145 [ 2147 [