##// END OF EJS Templates
nodemap: add a flag to dump the details of the docket...
marmoute -
r44806:6614b301 default
parent child Browse files
Show More
@@ -2100,6 +2100,12 b' def debugnamecomplete(ui, repo, *args):'
2100 False,
2100 False,
2101 _(b'check that the data on disk data are correct.'),
2101 _(b'check that the data on disk data are correct.'),
2102 ),
2102 ),
2103 (
2104 b'',
2105 b'metadata',
2106 False,
2107 _(b'display the on disk meta data for the nodemap'),
2108 ),
2103 ],
2109 ],
2104 )
2110 )
2105 def debugnodemap(ui, repo, **opts):
2111 def debugnodemap(ui, repo, **opts):
@@ -2124,6 +2130,13 b' def debugnodemap(ui, repo, **opts):'
2124 if nm_data is not None:
2130 if nm_data is not None:
2125 docket, data = nm_data
2131 docket, data = nm_data
2126 return nodemap.check_data(ui, cl.index, data)
2132 return nodemap.check_data(ui, cl.index, data)
2133 elif opts['metadata']:
2134 unfi = repo.unfiltered()
2135 cl = unfi.changelog
2136 nm_data = nodemap.persisted_data(cl)
2137 if nm_data is not None:
2138 docket, data = nm_data
2139 ui.write((b"uid: %s\n") % docket.uid)
2127
2140
2128
2141
2129 @command(
2142 @command(
@@ -291,7 +291,7 b' Show all commands + options'
291 debugmanifestfulltextcache: clear, add
291 debugmanifestfulltextcache: clear, add
292 debugmergestate:
292 debugmergestate:
293 debugnamecomplete:
293 debugnamecomplete:
294 debugnodemap: dump-new, dump-disk, check
294 debugnodemap: dump-new, dump-disk, check, metadata
295 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template
295 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template
296 debugp1copies: rev
296 debugp1copies: rev
297 debugp2copies: rev
297 debugp2copies: rev
@@ -12,6 +12,8 b' Test the persistent on-disk nodemap'
12 > persistent-nodemap=yes
12 > persistent-nodemap=yes
13 > EOF
13 > EOF
14 $ hg debugbuilddag .+5000
14 $ hg debugbuilddag .+5000
15 $ hg debugnodemap --metadata
16 uid: ???????????????? (glob)
15 $ f --size .hg/store/00changelog.n
17 $ f --size .hg/store/00changelog.n
16 .hg/store/00changelog.n: size=18
18 .hg/store/00changelog.n: size=18
17 $ f --sha256 .hg/store/00changelog-*.nd
19 $ f --sha256 .hg/store/00changelog-*.nd
@@ -47,6 +49,8 b' add a new commit'
47 $ echo foo > foo
49 $ echo foo > foo
48 $ hg add foo
50 $ hg add foo
49 $ hg ci -m 'foo'
51 $ hg ci -m 'foo'
52 $ hg debugnodemap --metadata
53 uid: ???????????????? (glob)
50 $ f --size .hg/store/00changelog.n
54 $ f --size .hg/store/00changelog.n
51 .hg/store/00changelog.n: size=18
55 .hg/store/00changelog.n: size=18
52
56
General Comments 0
You need to be logged in to leave comments. Login now