comparison tests/test-journal-exists.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 6cc4b14fb76b
comparison
equal deleted inserted replaced
12375:02990e22150b 12376:97ffc68f71d3
25 $ hg bundle -qa repo.hg 25 $ hg bundle -qa repo.hg
26 $ chmod -w foo/.hg/store/00changelog.i 26 $ chmod -w foo/.hg/store/00changelog.i
27 27
28 $ hg -R foo unbundle repo.hg 28 $ hg -R foo unbundle repo.hg
29 adding changesets 29 adding changesets
30 abort: Permission denied: .* (re) 30 abort: Permission denied: * (glob)
31 [255] 31 [255]
32 32
33 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi 33 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
34 34