comparison mercurial/debugcommands.py @ 49215:22279b604a88

fix-ci: backed out changeset 308e45f7b455 The chg variant of the CI see a failure on `tests/test-narrow-pull.t`. Bisecting point the failure as starting at this small changeset? Backing it out, restore the CI on default. It was never broken on stable, which is even more puzzling.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 16 May 2022 23:12:49 +0100
parents a932cad26d37
children 883be4c74d54
comparison
equal deleted inserted replaced
49214:e3ac39edaa94 49215:22279b604a88
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'',