diff tests/test-kwarchive.t @ 289:986d1472580c

Setup of a repo "repo3" with nested subrepos is done
author Franz Glasner <hg@dom66.de>
date Sat, 19 Jan 2019 22:51:19 +0100
parents 0080dab59fac
children eeb8c52d8802
line wrap: on
line diff
--- a/tests/test-kwarchive.t	Thu Jan 17 09:38:19 2019 +0100
+++ b/tests/test-kwarchive.t	Sat Jan 19 22:51:19 2019 +0100
@@ -310,7 +310,6 @@
   > path:README = RCS, reST
   > path:test2.txt = RCS, reST
   > subrepo1/** = RCS, reST
-  > 
   > [keywords]
   > JustDate =
   > HGheader =
@@ -319,9 +318,7 @@
   > Revision =
   > HGrevision =
   > Author =
-  > 
   > MyFullRevision = HGrevision
-  > 
   > MySubstKeyword = replace:: This is a custom replacement
   > EOF
   $ hg commit -m "New kwarchive configuration"
@@ -335,8 +332,18 @@
 
   $ prepare_repo "repo3"
   $ cd "repo3"
-  $ prepare_subrepo "subrepo1" "subrepos"
+  $ prepare_subrepo "subrepo1" "subrepos1"
   $ echo `pwd`
   $TESTTMP/repo3
   $ cat .hgsubstate
-  ^[a-f0-9]+\s+subrepos/subrepo1$ (re)
+  dac015e51ef48ba739a3c318dfb602011e236328 subrepos1/subrepo1
+  $ cd subrepos1/subrepo1
+  $ prepare_subrepo "subrepo2" "subrepos2"
+  $ echo `pwd`
+  $TESTTMP/repo3/subrepos1/subrepo1
+  $ cat .hgsubstate
+  dac015e51ef48ba739a3c318dfb602011e236328 subrepos2/subrepo2
+  $ cd ../..
+  $ hg ci -m 'Include the nested subrepo'
+  $ cat .hgsubstate
+  178db3dd221b646aa0487b4051e267bda182159c subrepos1/subrepo1