mercurial/debugcommands.py
branchstable
changeset 49153 308e45f7b455
parent 49152 eaaf4f98c9f1
child 49164 a932cad26d37
--- 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')),