Comments
Patch
@@ -479,8 +479,57 @@
abort: cannot combine --bundle and --subrepos
[255]
+Test pull -S:
+
+ $ hg init toto
+ $ cd toto
+ $ echo w > w.txt
+ $ hg add w.txt
+ $ hg commit -m 'b1'
+ $ cd ..
+ $ echo 'toto = toto' >> .hgsub
+ $ hg commit -S -m "3-b1"
+ $ cd ..
+ $ hg clone -U -r 0 repo repo3
+ adding changesets
+ adding manifests
+ adding file changes
+ added 1 changesets with 3 changes to 3 files
+ $ cd repo3
+ $ hg pull -S -r 1
+ pulling from $TESTTMP/repo (glob)
+ searching for changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 1 changesets with 1 changes to 1 files
+ cloning subrepo foo from file://$TESTTMP/repo/foo (glob)
+ cloning subrepo bar from $TESTTMP/repo/foo/bar (glob)
+ (run 'hg update' to get a working copy)
+ $ hg pull -S
+ pulling from $TESTTMP/repo (glob)
+ searching for changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 2 changesets with 3 changes to 2 files
+ pulling subrepo foo from file://$TESTTMP/repo/foo
+ searching for changes
+ no changes found
+ cloning subrepo toto from file://$TESTTMP/repo/toto
+ (run 'hg update' to get a working copy)
+
+Test clone -S:
+
+ $ cd ..
+ $ hg clone -U -S repo repo4
+ cloning subrepo foo from repo/foo
+ cloning subrepo bar from $TESTTMP/repo/foo/bar
+ cloning subrepo toto from repo/toto
+
Test missing subrepo:
+ $ cd repo
$ rm -r foo
$ hg status -S
warning: error "unknown revision '65903cebad86f1a84bd4f1134f62fa7dcb7a1c98'" in subrepository "foo"
@@ -498,3 +547,4 @@
$ hg add a x/a
$ cd ..
+