changeset 42631:24f0023bb8b1

hgignore: update \-escape test to reflect actual behavior "\\<char>" is not an escape character but "\\" + <char>.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Jul 2019 13:30:47 +0900
parents a2c02877b097
children c67e3f966867
files tests/test-hgignore.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgignore.t	Sat Jul 20 11:04:49 2019 -0700
+++ b/tests/test-hgignore.t	Sun Jul 21 13:30:47 2019 +0900
@@ -92,14 +92,14 @@
 
   $ touch 'foo#bar' 'quux#'
 #if no-windows
-  $ touch 'baz\#wat'
+  $ touch 'baz\wat'
 #endif
   $ cat <<'EOF' >> .hgignore
   > # full-line comment
   >   # whitespace-only comment line
   > syntax# pattern, no whitespace, then comment
   > a.c  # pattern, then whitespace, then comment
-  > baz\\# # escaped comment character
+  > baz\\# # (escaped) backslash, then comment
   > foo\#b # escaped comment character
   > quux\## escaped comment character at end of name
   > EOF
@@ -108,7 +108,7 @@
   ? .hgignore
   $ rm 'foo#bar' 'quux#'
 #if no-windows
-  $ rm 'baz\#wat'
+  $ rm 'baz\wat'
 #endif
 
 Check that '^\.' does not ignore the root directory: