Show More
@@ -90,10 +90,11 b' For icasefs, inexact matches also work, ' | |||
|
90 | 90 | |
|
91 | 91 | Ensure that comments work: |
|
92 | 92 | |
|
93 | $ touch 'foo#bar' 'quux#' | |
|
93 | $ touch 'foo#bar' 'quux#' 'quu0#' | |
|
94 | 94 | #if no-windows |
|
95 | $ touch 'baz\wat' 'ba0\#wat' 'ba1\\wat' | |
|
95 | $ touch 'baz\' 'baz\wat' 'ba0\#wat' 'ba1\\' 'ba1\\wat' 'quu0\' | |
|
96 | 96 |
|
|
97 | ||
|
97 | 98 | $ cat <<'EOF' >> .hgignore |
|
98 | 99 | > # full-line comment |
|
99 | 100 | > # whitespace-only comment line |
@@ -108,9 +109,31 b' Ensure that comments work:' | |||
|
108 | 109 | $ hg status |
|
109 | 110 | A dir/b.o |
|
110 | 111 | ? .hgignore |
|
111 | $ rm 'foo#bar' 'quux#' | |
|
112 | ? quu0# | |
|
113 | ? quu0\ (no-windows !) | |
|
114 | ||
|
115 | $ cat <<'EOF' > .hgignore | |
|
116 | > .*\.o | |
|
117 | > syntax: glob | |
|
118 | > syntax# pattern, no whitespace, then comment | |
|
119 | > a.c # pattern, then whitespace, then comment | |
|
120 | > baz\\#* # (escaped) backslash, then comment | |
|
121 | > ba0\\\#w* # (escaped) backslash, escaped comment character, then comment | |
|
122 | > ba1\\\\#* # (escaped) backslashes, then comment | |
|
123 | > foo\#b* # escaped comment character | |
|
124 | > quux\## escaped comment character at end of name | |
|
125 | > quu0[\#]# escaped comment character inside [...] | |
|
126 | > EOF | |
|
127 | $ hg status | |
|
128 | A dir/b.o | |
|
129 | ? .hgignore | |
|
130 | ? ba1\\wat (no-windows !) | |
|
131 | ? baz\wat (no-windows !) | |
|
132 | ? quu0\ (no-windows !) | |
|
133 | ||
|
134 | $ rm 'foo#bar' 'quux#' 'quu0#' | |
|
112 | 135 | #if no-windows |
|
113 |
$ rm 'baz\wat' 'ba0\#wat' 'ba1\\ |
|
|
136 | $ rm 'baz\' 'baz\wat' 'ba0\#wat' 'ba1\\' 'ba1\\wat' 'quu0\' | |
|
114 | 137 |
|
|
115 | 138 |
|
|
116 | 139 | Check that '^\.' does not ignore the root directory: |
General Comments 0
You need to be logged in to leave comments.
Login now