# HG changeset patch # User Pierre-Yves David # Date 1652739169 -3600 # Node ID 22279b604a8802b1669d558828942304039945ed # Parent e3ac39edaa94a54bfaec2ff0a95bf101f7b139de 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. diff -r e3ac39edaa94 -r 22279b604a88 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Tue May 17 12:05:09 2022 +0100 +++ b/mercurial/debugcommands.py Mon May 16 23:12:49 2022 +0100 @@ -1017,6 +1017,22 @@ @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 e3ac39edaa94 -r 22279b604a88 tests/test-completion.t --- a/tests/test-completion.t Tue May 17 12:05:09 2022 +0100 +++ b/tests/test-completion.t Mon May 16 23:12:49 2022 +0100 @@ -94,6 +94,7 @@ debugdate debugdeltachain debugdirstate + debugdirstateignorepatternshash debugdiscovery debugdownload debugextensions @@ -284,6 +285,7 @@ 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 e3ac39edaa94 -r 22279b604a88 tests/test-help.t --- a/tests/test-help.t Tue May 17 12:05:09 2022 +0100 +++ b/tests/test-help.t Mon May 16 23:12:49 2022 +0100 @@ -1014,6 +1014,8 @@ 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