diff tests/test-persistent-nodemap.t @ 46309:2c9c88879ab7

persistent-node: check the value of the slow-path config We should probably provide some standard for this in config item, but this is a quest for another adventure. Differential Revision: https://phab.mercurial-scm.org/D9760
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 13 Jan 2021 18:33:48 +0100
parents 7d096e5a5b90
children fc2d5c0aed7f
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t	Thu Jan 14 01:25:06 2021 +0100
+++ b/tests/test-persistent-nodemap.t	Wed Jan 13 18:33:48 2021 +0100
@@ -110,6 +110,15 @@
   $ echo foo > foo
   $ hg add foo
 
+
+Check slow-path config value handling
+-------------------------------------
+
+  $ hg id --config "storage.revlog.persistent-nodemap.slow-path=invalid-value"
+  unknown value for config "storage.revlog.persistent-nodemap.slow-path": "invalid-value"
+  falling back to default value: allow
+  6b02b8c7b966+ tip
+
 #if no-pure no-rust
 
   $ hg ci -m 'foo' --config "storage.revlog.nodemap.mode=strict"