tests/test-subrepo.t
branchstable
changeset 34985 5e27afeddaee
parent 34815 68e0bcb90357
child 34986 828cf35f1de6
--- a/tests/test-subrepo.t	Fri Nov 03 20:12:50 2017 +0900
+++ b/tests/test-subrepo.t	Sun Nov 05 21:22:07 2017 +0900
@@ -484,9 +484,29 @@
   path t
    source   t
    revision 20a0db6fbf6c3d2836e6519a642ae929bfc67c0e
+  $ cd ..
+
+clone with subrepo disabled (update should fail)
+
+  $ hg clone t -U tc2 --config subrepos.allowed=false
+  $ hg update -R tc2 --config subrepos.allowed=false
+  abort: subrepo not allowed
+  (see 'hg help config.subrepos' for details)
+  [255]
+  $ ls tc2
+  a
+
+  $ hg clone t tc3 --config subrepos.allowed=false
+  updating to branch default
+  abort: subrepo not allowed
+  (see 'hg help config.subrepos' for details)
+  [255]
+  $ ls tc3
+  a
 
 push
 
+  $ cd tc
   $ echo bah > t/t
   $ hg ci -m11
   committing subrepository t