changeset 5861:bf8a61f1c616 stable

tests: add some cache sanity checks based on already existing debug commands
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 17 Mar 2021 20:19:41 +0800
parents ed0b6dd95d66
children 5056fb0c919e
files tests/test-discovery-obshashrange-cache.t
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-discovery-obshashrange-cache.t	Wed Mar 17 14:48:13 2021 +0800
+++ b/tests/test-discovery-obshashrange-cache.t	Wed Mar 17 20:19:41 2021 +0800
@@ -205,3 +205,18 @@
   0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
   0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
   0050: 00 00 00 00 00 00 00 00 00 00 00 00             |............|
+
+  $ hg -R main debugdepth --rev 'all()' --method compare --debug
+  1ea73414a91b 1
+  66f7d451a68b 2
+  01241442b3c2 3
+  2dc09a01254d 4
+  bebd167eb94d 5
+  c8d03c1b5e94 6
+  f69452c5b1af 7
+  4de32a90b66c 8
+
+  $ hg -R main debugstablesortcache --debug
+  number of revisions:            8
+  number of merge:                0
+  number of jumps:                0