Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 44323:76a96e3a2bbb
nodemap: keep track of the docket for loaded data
To perform incremental update of the on disk data, we need to keep tracks of
some aspect of that data.
Differential Revision: https://phab.mercurial-scm.org/D7885
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Jan 2020 15:49:45 +0100 |
parents | 20e125cdd719 |
children | 6614b301ea58 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed Jan 15 15:49:35 2020 +0100 +++ b/mercurial/debugcommands.py Wed Jan 15 15:49:45 2020 +0100 @@ -2113,13 +2113,17 @@ elif opts['dump_disk']: unfi = repo.unfiltered() cl = unfi.changelog - data = nodemap.persisted_data(cl) - ui.write(data) + nm_data = nodemap.persisted_data(cl) + if nm_data is not None: + docket, data = nm_data + ui.write(data) elif opts['check']: unfi = repo.unfiltered() cl = unfi.changelog - data = nodemap.persisted_data(cl) - return nodemap.check_data(ui, cl.index, data) + nm_data = nodemap.persisted_data(cl) + if nm_data is not None: + docket, data = nm_data + return nodemap.check_data(ui, cl.index, data) @command(