fix-ci: backed out changeset 308e45f7b455
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 16 May 2022 23:12:49 +0100
changeset 49215 22279b604a88
parent 49214 e3ac39edaa94
child 49216 eb5954f092a9
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.
mercurial/debugcommands.py
tests/test-completion.t
tests/test-help.t
--- 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')),
--- 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
--- 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