equal
deleted
inserted
replaced
1015 for f in repo.dirstate.copies(): |
1015 for f in repo.dirstate.copies(): |
1016 ui.write(_(b"copy: %s -> %s\n") % (repo.dirstate.copied(f), f)) |
1016 ui.write(_(b"copy: %s -> %s\n") % (repo.dirstate.copied(f), f)) |
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')), |
1023 ( |
1039 ( |
1024 b'', |
1040 b'', |