tests/test-subrepo-git.t
branchstable
changeset 13553 dea6efdd7ec4
parent 13460 64bb8e586a92
child 13558 f854b775c386
child 14469 2fdea636f254
--- a/tests/test-subrepo-git.t	Mon Mar 07 15:44:43 2011 -0600
+++ b/tests/test-subrepo-git.t	Mon Mar 07 12:03:54 2011 -0500
@@ -314,6 +314,26 @@
   cloning subrepo s
   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
+Don't crash if the subrepo is missing
+
+  $ hg clone t missing -q
+  $ cd missing
+  $ rm -rf s
+  $ hg status -S
+  $ hg sum | grep commit
+  commit: 1 subrepos
+  $ hg push -q
+  abort: subrepo s is missing
+  [255]
+  $ hg commit -qm missing
+  abort: subrepo s is missing
+  [255]
+  $ hg update -C
+  cloning subrepo s
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg sum | grep commit
+  commit: (clean)
+
 Check hg update --clean
   $ cd $TESTTMP/ta
   $ echo  > s/g