--- a/tests/test-subrepo-git.t Fri May 01 16:49:15 2015 -0500
+++ b/tests/test-subrepo-git.t Sun May 03 12:49:15 2015 -0700
@@ -381,6 +381,20 @@
$ hg commit --subrepos -qm missing
abort: subrepo s is missing (in subrepo s)
[255]
+
+#if symlink
+Don't crash if subrepo is a broken symlink
+ $ ln -s broken s
+ $ hg status -S
+ $ hg push -q
+ abort: subrepo s is missing (in subrepo s)
+ [255]
+ $ hg commit --subrepos -qm missing
+ abort: subrepo s is missing (in subrepo s)
+ [255]
+ $ rm s
+#endif
+
$ hg update -C 2> /dev/null
cloning subrepo s from $TESTTMP/gitroot
1 files updated, 0 files merged, 0 files removed, 0 files unresolved