--- a/mercurial/debugcommands.py Wed Jan 15 15:49:54 2020 +0100
+++ b/mercurial/debugcommands.py Wed Jan 15 15:50:04 2020 +0100
@@ -2100,6 +2100,12 @@
False,
_(b'check that the data on disk data are correct.'),
),
+ (
+ b'',
+ b'metadata',
+ False,
+ _(b'display the on disk meta data for the nodemap'),
+ ),
],
)
def debugnodemap(ui, repo, **opts):
@@ -2124,6 +2130,13 @@
if nm_data is not None:
docket, data = nm_data
return nodemap.check_data(ui, cl.index, data)
+ elif opts['metadata']:
+ unfi = repo.unfiltered()
+ cl = unfi.changelog
+ nm_data = nodemap.persisted_data(cl)
+ if nm_data is not None:
+ docket, data = nm_data
+ ui.write((b"uid: %s\n") % docket.uid)
@command(