comparison mercurial/debugcommands.py @ 44515:6c906eaedd0d

nodemap: track the tip_node for validation Differential Revision: https://phab.mercurial-scm.org/D8184
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 27 Feb 2020 16:32:43 +0100
parents febe88a6f7f7
children c989737158aa
comparison
equal deleted inserted replaced
44514:15a033cabc19 44515:6c906eaedd0d
2134 nm_data = nodemap.persisted_data(cl) 2134 nm_data = nodemap.persisted_data(cl)
2135 if nm_data is not None: 2135 if nm_data is not None:
2136 docket, data = nm_data 2136 docket, data = nm_data
2137 ui.write((b"uid: %s\n") % docket.uid) 2137 ui.write((b"uid: %s\n") % docket.uid)
2138 ui.write((b"tip-rev: %d\n") % docket.tip_rev) 2138 ui.write((b"tip-rev: %d\n") % docket.tip_rev)
2139 ui.write((b"tip-node: %s\n") % hex(docket.tip_node))
2139 ui.write((b"data-length: %d\n") % docket.data_length) 2140 ui.write((b"data-length: %d\n") % docket.data_length)
2140 ui.write((b"data-unused: %d\n") % docket.data_unused) 2141 ui.write((b"data-unused: %d\n") % docket.data_unused)
2141 2142
2142 2143
2143 @command( 2144 @command(