diff tests/test-touch.t @ 3210:df8d535216af stable

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 30 Nov 2017 21:31:14 -0800
parents 945a0989e41b
children 175b524b9a2b
line wrap: on
line diff
--- 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)