tests/test-subrepo-missing.t
branchstable
changeset 29021 92d37fb3f1aa
parent 25865 a48a7c2d1fea
child 29785 a7f8939641aa
--- a/tests/test-subrepo-missing.t	Thu Apr 28 08:52:13 2016 -0700
+++ b/tests/test-subrepo-missing.t	Wed Apr 27 22:45:52 2016 -0400
@@ -121,4 +121,22 @@
   subrepo 'subrepo' is hidden in revision 674d05939c1e
   subrepo 'subrepo' not found in revision a7d05d9055a4
 
+verifying shouldn't init a new subrepo if the reference doesn't exist
+
+  $ mv subrepo b
+  $ hg verify
+  checking changesets
+  checking manifests
+  crosschecking files in changesets and manifests
+  checking files
+  2 files, 5 changesets, 5 total revisions
+  checking subrepo links
+  0: repository $TESTTMP/repo/subrepo not found (glob)
+  1: repository $TESTTMP/repo/subrepo not found (glob)
+  3: repository $TESTTMP/repo/subrepo not found (glob)
+  4: repository $TESTTMP/repo/subrepo not found (glob)
+  $ ls
+  b
+  $ mv b subrepo
+
   $ cd ..