--- 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