diff tests/test-subrepo-git.t @ 12996:3a42651b0a62

subrepo: removing (and restoring) git subrepo state
author Eric Eisner <ede@mit.edu>
date Sun, 14 Nov 2010 18:31:40 -0500
parents d90fc91c8377
children 6bdae8ea0b48
line wrap: on
line diff
--- a/tests/test-subrepo-git.t	Sun Nov 14 18:31:29 2010 -0500
+++ b/tests/test-subrepo-git.t	Sun Nov 14 18:31:40 2010 -0500
@@ -175,3 +175,21 @@
   adding manifests
   adding file changes
   added 2 changesets with 2 changes to 1 files
+
+update to a revision without the subrepo, keeping the local git repository
+
+  $ cd ../t
+  $ hg up 0
+  0 files updated, 0 files merged, 2 files removed, 0 files unresolved
+  $ ls s -a
+  .
+  ..
+  .git
+
+  $ hg up 2
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ ls s -a
+  .
+  ..
+  .git
+  g