diff tests/test-subrepo-recursion.t @ 12376:97ffc68f71d3

tests: add glob matching for unified tests This adds a " (glob)" marker that works like a simpler version of (re): "*" is converted to ".*", and "?" is converted to ".". Both special characters can be escaped using "\", and the backslash itself can be escaped as well. Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't supported.
author Brodie Rao <brodie@bitheap.org>
date Wed, 22 Sep 2010 16:06:02 -0500
parents 02990e22150b
children 40852b4b910c
line wrap: on
line diff
--- a/tests/test-subrepo-recursion.t	Wed Sep 22 16:06:00 2010 -0500
+++ b/tests/test-subrepo-recursion.t	Wed Sep 22 16:06:02 2010 -0500
@@ -252,13 +252,13 @@
   $ cd ..
   $ hg clone repo repo2
   updating to branch default
-  pulling subrepo foo from .*/test-subrepo-recursion\.t/repo/foo (re)
+  pulling subrepo foo from */test-subrepo-recursion.t/repo/foo (glob)
   requesting all changes
   adding changesets
   adding manifests
   adding file changes
   added 4 changesets with 7 changes to 3 files
-  pulling subrepo foo/bar from .*/test-subrepo-recursion\.t/repo/foo/bar (re)
+  pulling subrepo foo/bar from */test-subrepo-recursion.t/repo/foo/bar (glob)
   requesting all changes
   adding changesets
   adding manifests
@@ -267,10 +267,10 @@
   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd repo2
   $ hg outgoing -S
-  comparing with .*/test-subrepo-recursion\.t/repo (re)
+  comparing with */test-subrepo-recursion.t/repo (glob)
   searching for changes
   no changes found
-  comparing with .*/test-subrepo-recursion\.t/repo/foo (re)
+  comparing with */test-subrepo-recursion.t/repo/foo (glob)
   searching for changes
   no changes found
   [1]
@@ -290,7 +290,7 @@
   $ hg commit -m 3-4-2
   committing subrepository foo
   $ hg outgoing -S
-  comparing with .*/test-subrepo-recursion\.t/repo (re)
+  comparing with */test-subrepo-recursion.t/repo (glob)
   searching for changes
   changeset:   3:2655b8ecc4ee
   tag:         tip
@@ -298,7 +298,7 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     3-4-2
   
-  comparing with .*/test-subrepo-recursion\.t/repo/foo (re)
+  comparing with */test-subrepo-recursion.t/repo/foo (glob)
   searching for changes
   changeset:   4:e96193d6cb36
   tag:         tip
@@ -316,7 +316,7 @@
 Test incoming:
 
   $ hg incoming -S
-  comparing with .*/test-subrepo-recursion\.t/repo2 (re)
+  comparing with */test-subrepo-recursion.t/repo2 (glob)
   searching for changes
   changeset:   3:2655b8ecc4ee
   tag:         tip
@@ -324,7 +324,7 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     3-4-2
   
-  comparing with .*/test-subrepo-recursion\.t/repo2/foo (re)
+  comparing with */test-subrepo-recursion.t/repo2/foo (glob)
   searching for changes
   changeset:   4:e96193d6cb36
   tag:         tip