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.
--- 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)