Show More
@@ -1017,6 +1017,22 b' def debugstate(ui, repo, **opts):' | |||||
1017 |
|
1017 | |||
1018 |
|
1018 | |||
1019 | @command( |
|
1019 | @command( | |
|
1020 | b'debugdirstateignorepatternshash', | |||
|
1021 | [], | |||
|
1022 | _(b''), | |||
|
1023 | ) | |||
|
1024 | def debugdirstateignorepatternshash(ui, repo, **opts): | |||
|
1025 | """show the hash of ignore patterns stored in dirstate if v2, | |||
|
1026 | or nothing for dirstate-v2 | |||
|
1027 | """ | |||
|
1028 | if repo.dirstate._use_dirstate_v2: | |||
|
1029 | docket = repo.dirstate._map.docket | |||
|
1030 | hash_len = 20 # 160 bits for SHA-1 | |||
|
1031 | hash_bytes = docket.tree_metadata[-hash_len:] | |||
|
1032 | ui.write(binascii.hexlify(hash_bytes) + b'\n') | |||
|
1033 | ||||
|
1034 | ||||
|
1035 | @command( | |||
1020 | b'debugdiscovery', |
|
1036 | b'debugdiscovery', | |
1021 | [ |
|
1037 | [ | |
1022 | (b'', b'old', None, _(b'use old-style discovery')), |
|
1038 | (b'', b'old', None, _(b'use old-style discovery')), |
@@ -94,6 +94,7 b' Show debug commands if there are no othe' | |||||
94 | debugdate |
|
94 | debugdate | |
95 | debugdeltachain |
|
95 | debugdeltachain | |
96 | debugdirstate |
|
96 | debugdirstate | |
|
97 | debugdirstateignorepatternshash | |||
97 | debugdiscovery |
|
98 | debugdiscovery | |
98 | debugdownload |
|
99 | debugdownload | |
99 | debugextensions |
|
100 | debugextensions | |
@@ -284,6 +285,7 b' Show all commands + options' | |||||
284 | debugdata: changelog, manifest, dir |
|
285 | debugdata: changelog, manifest, dir | |
285 | debugdate: extended |
|
286 | debugdate: extended | |
286 | debugdeltachain: changelog, manifest, dir, template |
|
287 | debugdeltachain: changelog, manifest, dir, template | |
|
288 | debugdirstateignorepatternshash: | |||
287 | debugdirstate: nodates, dates, datesort, docket, all |
|
289 | debugdirstate: nodates, dates, datesort, docket, all | |
288 | debugdiscovery: old, nonheads, rev, seed, local-as-revs, remote-as-revs, ssh, remotecmd, insecure, template |
|
290 | debugdiscovery: old, nonheads, rev, seed, local-as-revs, remote-as-revs, ssh, remotecmd, insecure, template | |
289 | debugdownload: output |
|
291 | debugdownload: output |
@@ -1014,6 +1014,8 b' Test list of internal help commands' | |||||
1014 | dump information about delta chains in a revlog |
|
1014 | dump information about delta chains in a revlog | |
1015 | debugdirstate |
|
1015 | debugdirstate | |
1016 | show the contents of the current dirstate |
|
1016 | show the contents of the current dirstate | |
|
1017 | debugdirstateignorepatternshash | |||
|
1018 | show the hash of ignore patterns stored in dirstate if v2, | |||
1017 | debugdiscovery |
|
1019 | debugdiscovery | |
1018 | runs the changeset discovery protocol in isolation |
|
1020 | runs the changeset discovery protocol in isolation | |
1019 | debugdownload |
|
1021 | debugdownload |
General Comments 0
You need to be logged in to leave comments.
Login now