diff test-onsub-mixed.t @ 18:d920e3425db5

Added parameter to filter the type of subrepo to loop through. Added tests.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 29 Mar 2012 16:18:57 -0700
parents 5ea3f7533ec5
children
line wrap: on
line diff
--- a/test-onsub-mixed.t	Tue Mar 27 16:53:23 2012 -0700
+++ b/test-onsub-mixed.t	Thu Mar 29 16:18:57 2012 -0700
@@ -54,3 +54,24 @@
   b = hg
   git-i = git
 
+Test the type filter
+
+  $ hg onsub 'echo $HG_SUBPATH' -t hg
+  a
+  b
+
+  $ hg onsub 'echo $HG_SUBPATH' -t git
+  a/git-j
+  git-i
+
+Test the type filter including the root repository
+
+  $ hg onsub 'echo $HG_SUBPATH' -t hg --root-repo
+  .
+  a
+  b
+
+  $ hg onsub 'echo $HG_SUBPATH' -t git --root-repo
+  a/git-j
+  git-i
+