comparison tests/test-paths.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 e3247ceaca5e
comparison
equal deleted inserted replaced
12375:02990e22150b 12376:97ffc68f71d3
4 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 4 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 $ cd a 5 $ cd a
6 $ echo '[paths]' >> .hg/hgrc 6 $ echo '[paths]' >> .hg/hgrc
7 $ echo 'dupe = ../b' >> .hg/hgrc 7 $ echo 'dupe = ../b' >> .hg/hgrc
8 $ hg in dupe 8 $ hg in dupe
9 comparing with .*/test-paths\.t/b (re) 9 comparing with */test-paths.t/b (glob)
10 no changes found 10 no changes found
11 [1] 11 [1]
12 $ cd .. 12 $ cd ..
13 $ hg -R a in dupe 13 $ hg -R a in dupe
14 comparing with .*/test-paths\.t/b (re) 14 comparing with */test-paths.t/b (glob)
15 no changes found 15 no changes found
16 [1] 16 [1]