d708bb23ef89 — Vincent Hatakeyama 1 year, 8 months ago
Add nested test
1 files changed, 95 insertions(+), 0 deletions(-)

M tests/test-expand.t
M tests/test-expand.t +95 -0
@@ 262,6 262,101 @@ Finally, "app"
 
   $ hg ci -m 'first app conf commit'
 
+
+Test nested mode
+  $ cd $TESTTMP
+  $ hg init appnested
+  $ cd $TESTTMP/appnested
+  $ cat >> .hgconf << EOF
+  > [framework]
+  > pulluri = $TESTTMP/framework
+  > layout = dependencies/framework
+  > track = 0
+  > expand.nested =
+  > [lib1]
+  > pulluri = $TESTTMP/lib1
+  > layout = lib1
+  > track = 0
+  > [main]
+  > pulluri = $TESTTMP/main
+  > layout = main
+  > track = 0
+  > [tier2]
+  > pulluri = $TESTTMP/tier2
+  > layout = tier2
+  > track = 0
+  > EOF
+  $ hg add .hgconf
+
+  $ hg cfensureconf
+  cloning framework from $TESTTMP/framework to $TESTTMP/appnested/dependencies/framework
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  framework
+  updating to 0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from */default (glob)
+  cloning libs from $TESTTMP/libs to $TESTTMP/appnested/dependencies/framework/dependencies/libs
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  libs
+  updating to 0.1.0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from */default (glob)
+  cloning lib1 from $TESTTMP/lib1 to $TESTTMP/appnested/lib1
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  lib1
+  updating to 0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  cloning lib2 from $TESTTMP/lib2 to $TESTTMP/appnested/lib2
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  lib2
+  updating to 0.1.0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  cloning core from $TESTTMP/core to $TESTTMP/appnested/dependencies/framework/core
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  core
+  updating to 0.1.0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  cloning tier1 from $TESTTMP/tier1 to $TESTTMP/appnested/dependencies/framework/tier1
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  tier1
+  updating to 0.1.0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  cloning main from $TESTTMP/main to $TESTTMP/appnested/main
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  main
+  updating to 0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  cloning tier2 from $TESTTMP/tier2 to $TESTTMP/appnested/tier2
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  tier2
+  updating to 0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  updated to 0.1.0/default from 68f1e6a871f275e4ba08b2bce7db0a0edc33084e/default
+  $ hg cfs
+  appnested
+  |- framework (default public) 0.1.0  [baseline aligned with cset 0]
+  |  |- libs (default public) 0.1.0  ok
+  |- |  |- lib1 (default public) 0.1.0  [baseline aligned with cset 0]
+  |  |  `- lib2 (default public) 0.1.0  ok
+  |  |- core (default public) 0.1.0  ok
+  |  `- tier1 (default public) 0.1.0  ok
+  |- main (default public) 0.1.0  [baseline aligned with cset 0]
+  `- tier2 (default public) 0.1.0  [baseline aligned with cset 0]
+
+
 Bump a dependency: lib1
   $ cd $TESTTMP/libs
   $ hg cfensure