tests/test-share-safe.t
changeset 45486 ac7a3da0dbb6
parent 45485 b71858b42963
child 45487 78f0bb37f52d
--- a/tests/test-share-safe.t	Thu Jul 02 16:23:36 2020 +0530
+++ b/tests/test-share-safe.t	Thu Sep 17 18:49:57 2020 -0700
@@ -33,6 +33,10 @@
   $ hg ci -Aqm "added a"
   $ echo b > b
   $ hg ci -Aqm "added b"
+
+  $ HGEDITOR=cat hg config --shared
+  abort: repository is not shared; can't use --shared
+  [255]
   $ cd ..
 
 Create a shared repo and check the requirements are shared and read correctly
@@ -85,6 +89,14 @@
   $ hg showconfig ui.curses
   false
 
+  $ HGEDITOR=cat hg config --shared
+  [ui]
+  curses=true
+
+  $ HGEDITOR=cat hg config --local
+  [ui]
+  curses=false
+
 Testing that hooks set in source repository also runs in shared repo
 
   $ cd ../source