tests/test-persistent-nodemap.t
changeset 52673 bbbb12632607
parent 52457 8dede0df9de9
child 53031 e705fec4a03f
--- a/tests/test-persistent-nodemap.t	Mon Dec 09 06:23:29 2024 +0100
+++ b/tests/test-persistent-nodemap.t	Mon Dec 09 06:23:34 2024 +0100
@@ -24,7 +24,7 @@
   $ hg init test-repo --config storage.revlog.persistent-nodemap.slow-path=allow
   $ cd test-repo
 
-Check handling of the default slow-path value
+Check handling of the default slow-path value and its variants
 
 #if no-pure no-rust
 
@@ -33,6 +33,36 @@
   (check `hg help config.format.use-persistent-nodemap` for details)
   [255]
 
+  $ hg id \
+  >    --config storage.revlog.persistent-nodemap.slow-path=abort
+  abort: accessing `persistent-nodemap` repository without associated fast implementation.
+  (check `hg help config.format.use-persistent-nodemap` for details)
+  [255]
+
+  $ hg id \
+  >    --config storage.revlog.persistent-nodemap.slow-path=warn
+  warning: accessing `persistent-nodemap` repository without associated fast implementation.
+  (check `hg help config.format.use-persistent-nodemap` for details)
+  000000000000 tip
+
+  $ hg id \
+  >    --config storage.all-slow-path=warn
+  warning: accessing `persistent-nodemap` repository without associated fast implementation.
+  (check `hg help config.format.use-persistent-nodemap` for details)
+  000000000000 tip
+
+  $ hg id \
+  >    --config storage.all-slow-path=warn \
+  >    --config storage.revlog.persistent-nodemap.slow-path=abort
+  abort: accessing `persistent-nodemap` repository without associated fast implementation.
+  (check `hg help config.format.use-persistent-nodemap` for details)
+  [255]
+
+  $ hg id \
+  >    --config storage.all-slow-path=abort \
+  >    --config storage.revlog.persistent-nodemap.slow-path=allow
+  000000000000 tip
+
 Unlock further check (we are here to test the feature)
 
   $ cat << EOF >> $HGRCPATH