# HG changeset patch # User Raphaël Gomès # Date 1651152128 -7200 # Node ID 308e45f7b455bfcbe889287381e8bd3c65992f4a # Parent eaaf4f98c9f19174620999601d984beaf3cb543b debugcommands: remove `debugdirstateignorepatternhash` This is replaced by the more complete `--docket` option to `debugstate`. Differential Revision: https://phab.mercurial-scm.org/D12591 diff -r eaaf4f98c9f1 -r 308e45f7b455 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Apr 28 15:19:19 2022 +0200 +++ b/mercurial/debugcommands.py Thu Apr 28 15:22:08 2022 +0200 @@ -1018,22 +1018,6 @@ @command( - b'debugdirstateignorepatternshash', - [], - _(b''), -) -def debugdirstateignorepatternshash(ui, repo, **opts): - """show the hash of ignore patterns stored in dirstate if v2, - or nothing for dirstate-v2 - """ - if repo.dirstate._use_dirstate_v2: - docket = repo.dirstate._map.docket - hash_len = 20 # 160 bits for SHA-1 - hash_bytes = docket.tree_metadata[-hash_len:] - ui.write(binascii.hexlify(hash_bytes) + b'\n') - - -@command( b'debugdiscovery', [ (b'', b'old', None, _(b'use old-style discovery')), diff -r eaaf4f98c9f1 -r 308e45f7b455 tests/test-completion.t --- a/tests/test-completion.t Thu Apr 28 15:19:19 2022 +0200 +++ b/tests/test-completion.t Thu Apr 28 15:22:08 2022 +0200 @@ -94,7 +94,6 @@ debugdate debugdeltachain debugdirstate - debugdirstateignorepatternshash debugdiscovery debugdownload debugextensions @@ -285,7 +284,6 @@ debugdata: changelog, manifest, dir debugdate: extended debugdeltachain: changelog, manifest, dir, template - debugdirstateignorepatternshash: debugdirstate: nodates, dates, datesort, docket, all debugdiscovery: old, nonheads, rev, seed, local-as-revs, remote-as-revs, ssh, remotecmd, insecure, template debugdownload: output diff -r eaaf4f98c9f1 -r 308e45f7b455 tests/test-help.t --- a/tests/test-help.t Thu Apr 28 15:19:19 2022 +0200 +++ b/tests/test-help.t Thu Apr 28 15:22:08 2022 +0200 @@ -1013,8 +1013,6 @@ dump information about delta chains in a revlog debugdirstate show the contents of the current dirstate - debugdirstateignorepatternshash - show the hash of ignore patterns stored in dirstate if v2, debugdiscovery runs the changeset discovery protocol in isolation debugdownload