Show More
@@ -2100,6 +2100,12 b' def debugnamecomplete(ui, repo, *args):' | |||
|
2100 | 2100 | False, |
|
2101 | 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 | 2111 | def debugnodemap(ui, repo, **opts): |
@@ -2124,6 +2130,13 b' def debugnodemap(ui, repo, **opts):' | |||
|
2124 | 2130 | if nm_data is not None: |
|
2125 | 2131 | docket, data = nm_data |
|
2126 | 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 | 2142 | @command( |
@@ -291,7 +291,7 b' Show all commands + options' | |||
|
291 | 291 | debugmanifestfulltextcache: clear, add |
|
292 | 292 | debugmergestate: |
|
293 | 293 | debugnamecomplete: |
|
294 | debugnodemap: dump-new, dump-disk, check | |
|
294 | debugnodemap: dump-new, dump-disk, check, metadata | |
|
295 | 295 | debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template |
|
296 | 296 | debugp1copies: rev |
|
297 | 297 | debugp2copies: rev |
@@ -12,6 +12,8 b' Test the persistent on-disk nodemap' | |||
|
12 | 12 | > persistent-nodemap=yes |
|
13 | 13 | > EOF |
|
14 | 14 | $ hg debugbuilddag .+5000 |
|
15 | $ hg debugnodemap --metadata | |
|
16 | uid: ???????????????? (glob) | |
|
15 | 17 | $ f --size .hg/store/00changelog.n |
|
16 | 18 | .hg/store/00changelog.n: size=18 |
|
17 | 19 | $ f --sha256 .hg/store/00changelog-*.nd |
@@ -47,6 +49,8 b' add a new commit' | |||
|
47 | 49 | $ echo foo > foo |
|
48 | 50 | $ hg add foo |
|
49 | 51 | $ hg ci -m 'foo' |
|
52 | $ hg debugnodemap --metadata | |
|
53 | uid: ???????????????? (glob) | |
|
50 | 54 | $ f --size .hg/store/00changelog.n |
|
51 | 55 | .hg/store/00changelog.n: size=18 |
|
52 | 56 |
General Comments 0
You need to be logged in to leave comments.
Login now