[PATCH 1 of 1] tests: improve graphlog hack for unified tests

Adrian Buehlmann adrian at cadifra.com
Tue Sep 21 11:40:40 CDT 2010


# 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


More information about the Mercurial-devel mailing list