Mercurial > hg-stable
diff tests/test-help.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 | 4ac734b9b3fd |
line wrap: on
line diff
--- a/tests/test-help.t Wed Sep 22 16:06:00 2010 -0500 +++ b/tests/test-help.t Wed Sep 22 16:06:02 2010 -0500 @@ -189,7 +189,7 @@ Test short command list with verbose option $ hg -v help shortlist - Mercurial Distributed SCM \(version .*\) (re) + Mercurial Distributed SCM (version *) (glob) Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO @@ -341,7 +341,7 @@ Test help option with version option $ hg add -h --version - Mercurial Distributed SCM \(version .+?\) (re) + Mercurial Distributed SCM (version *) (glob) Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO