Mercurial > hg
changeset 42632:c67e3f966867
hgignore: add a few more weird patterns to test case
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jul 2019 13:37:24 +0900 |
parents | 24f0023bb8b1 |
children | f78f305454fd |
files | tests/test-hgignore.t |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hgignore.t Sun Jul 21 13:30:47 2019 +0900 +++ b/tests/test-hgignore.t Sun Jul 21 13:37:24 2019 +0900 @@ -92,7 +92,7 @@ $ touch 'foo#bar' 'quux#' #if no-windows - $ touch 'baz\wat' + $ touch 'baz\wat' 'ba0\#wat' 'ba1\\wat' #endif $ cat <<'EOF' >> .hgignore > # full-line comment @@ -100,6 +100,8 @@ > syntax# pattern, no whitespace, then comment > a.c # pattern, then whitespace, then comment > baz\\# # (escaped) backslash, then comment + > ba0\\\#w # (escaped) backslash, escaped comment character, then comment + > ba1\\\\# # (escaped) backslashes, then comment > foo\#b # escaped comment character > quux\## escaped comment character at end of name > EOF @@ -108,7 +110,7 @@ ? .hgignore $ rm 'foo#bar' 'quux#' #if no-windows - $ rm 'baz\wat' + $ rm 'baz\wat' 'ba0\#wat' 'ba1\\wat' #endif Check that '^\.' does not ignore the root directory: