[PATCH 1 of 1] tests: improve graphlog hack for unified tests
Adrian Buehlmann
adrian at cadifra.com
Tue Sep 21 19:10:16 CDT 2010
On 21.09.2010 18:40, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1285084227 -7200
> # Node ID bc5bbabe5f7e18acbcbe2e78f30b5e994ac70e6b
> # Parent dbca8f134f00fb10f7154b2f6cd9b8188095b1de
> tests: improve graphlog hack for unified tests
>
> diff --git a/tests/run-tests.py b/tests/run-tests.py
> --- a/tests/run-tests.py
> +++ b/tests/run-tests.py
> @@ -505,7 +505,7 @@ def tsttest(test, options):
> try:
> # hack to deal with graphlog, which looks like bogus regexes
> if el.startswith('|'):
> - el = '\\' + el
> + el = el.replace('|', '\\|')
> return re.match(el, l)
> except re.error:
> # el is an invalid regex
This fails for the following theoretical graphlog sample:
@ 8:c11d5b3e9c00
|
o 7:33c9da881988
|
| o 6:0e4064ab11a3
| |
o | 5:5ac035cb5d8f
| |
| | o 4:8e66061486ee
| | |
+---o 3:99567862abbe
| |
| o 2:65a26a4d12f6
| |
| o 1:0f3f3010ee16
|/
o 0:1994f17a630e
Revision 5 is the culprit.
Sigh.
More information about the Mercurial-devel
mailing list