Skip to content
Snippets Groups Projects
Commit c67e3f96 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

hgignore: add a few more weird patterns to test case

parent 24f0023b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment