diff tests/test-subrepo.t @ 17938:fd903f89e42b

share: always set default path to work with subrepos (issue3518) set the default path in any case because creating subrepo looks this up. Subrepos are cloned, not shared.
author simon@laptop-tosh
date Sat, 27 Oct 2012 12:38:59 +0200
parents ce2c709a8e90
children 9e3910db4e78
line wrap: on
line diff
--- a/tests/test-subrepo.t	Sat Nov 03 10:40:36 2012 +0100
+++ b/tests/test-subrepo.t	Sat Oct 27 12:38:59 2012 +0200
@@ -718,6 +718,14 @@
   committing subrepository subrepo-2
   $ hg st subrepo-2/file
 
+Check that share works with subrepo
+  $ hg --config extensions.share= share . ../shared
+  updating working directory
+  cloning subrepo subrepo-2 from $TESTTMP/subrepo-status/subrepo-2
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ test -f ../shared/subrepo-1/.hg/sharedpath
+  [1]
+
 Check hg update --clean
   $ cd $TESTTMP/t
   $ rm -r t/t.orig