Mercurial > hg
comparison mercurial/debugcommands.py @ 44335:e41a164db7a9
nodemap: track the maximum revision tracked in the nodemap
We need a simple way to detect when the on disk data contains less revision
than the index we read from disk. The docket file is meant for this, we just had
to start tracking that data.
We should also try to detect strip operation, but we will deal with this in
later changesets. Right now we are focusing on defining the API for index
supporting persistent nodemap.
Differential Revision: https://phab.mercurial-scm.org/D7888
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Jan 2020 15:50:14 +0100 |
parents | 6614b301ea58 |
children | 8374b69aef75 |
comparison
equal
deleted
inserted
replaced
44334:6614b301ea58 | 44335:e41a164db7a9 |
---|---|
2135 cl = unfi.changelog | 2135 cl = unfi.changelog |
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 | 2141 |
2141 | 2142 |
2142 @command( | 2143 @command( |
2143 b'debugobsolete', | 2144 b'debugobsolete', |
2144 [ | 2145 [ |