# HG changeset patch # User Martin von Zweigbergk # Date 1512106274 28800 # Node ID df8d535216afe3de5f282e558f7b8e16564ac285 # Parent a05e4623914662ac457436f864817dee4cac5cf0 tests: fix previously accidentally matching regexes in test-touch.t Before Mercurial commit 6d5718e39657 (run-tests: make "| foo (re)" not match everything, 2017-11-29), regexes like "| foo", which are common in graphlog output, would incorrectly match anything. After that commit, they match as they should, meaning that either "" or " foo" would match, but not a "| foo". This commit fixes the test by replacing the "|" by "." rather than escaping with "\|" since that would make the graph harder to read. diff -r a05e46239146 -r df8d535216af tests/test-touch.t --- a/tests/test-touch.t Thu Nov 30 12:09:21 2017 -0500 +++ b/tests/test-touch.t Thu Nov 30 21:31:14 2017 -0800 @@ -112,17 +112,17 @@ $ hg log -G --hidden @ 11:[0-9a-f]{12} gna1 (re) | - | o 10:[0-9a-f]{12} move (re) + . o 10:[0-9a-f]{12} move (re) | | - | x 9:[0-9a-f]{12} gna1 (re) + . x 9:[0-9a-f]{12} gna1 (re) |/ o 8:[0-9a-f]{12} d (re) | o 7:[0-9a-f]{12} c (re) | - | x 6:[0-9a-f]{12} d (re) + . x 6:[0-9a-f]{12} d (re) | | - | x 5:[0-9a-f]{12} c (re) + . x 5:[0-9a-f]{12} c (re) |/ o 4:[0-9a-f]{12} (re)