changeset 50511:c847a3e82056

cli: add a test of `hg debugnodemap --manifest` this is a new option that's not tested yet
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Mon, 22 May 2023 10:20:24 +0100
parents 4fe46f96b56b
children a32d739b0ffb
files tests/test-persistent-nodemap.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t	Thu May 18 19:37:12 2023 +0100
+++ b/tests/test-persistent-nodemap.t	Mon May 22 10:20:24 2023 +0100
@@ -90,6 +90,14 @@
   $ f --size .hg/store/00changelog.n
   .hg/store/00changelog.n: size=62
 
+  $ hg debugnodemap --metadata --manifest
+  uid: ???????? (glob)
+  tip-rev: 5000
+  tip-node: 513d42790a19f0f60c6ebea54b9543bc9537b959
+  data-length: 120960
+  data-unused: 0
+  data-unused: 0.000%
+
 Simple lookup works
 
   $ ANYNODE=`hg log --template '{node|short}\n' --rev tip`