Show More
@@ -55,6 +55,23 b' Should display baz only:' | |||||
55 | ? a.c |
|
55 | ? a.c | |
56 | ? syntax |
|
56 | ? syntax | |
57 |
|
57 | |||
|
58 | Ensure that comments work: | |||
|
59 | ||||
|
60 | $ touch 'foo#bar' 'quux#' 'baz\#wat' | |||
|
61 | $ cat <<'EOF' >> .hgignore | |||
|
62 | > # full-line comment | |||
|
63 | > # whitespace-only comment line | |||
|
64 | > syntax# pattern, no whitespace, then comment | |||
|
65 | > a.c # pattern, then whitespace, then comment | |||
|
66 | > baz\\# # escaped comment character | |||
|
67 | > foo\#b # escaped comment character | |||
|
68 | > quux\## escaped comment character at end of name | |||
|
69 | > EOF | |||
|
70 | $ hg status | |||
|
71 | A dir/b.o | |||
|
72 | ? .hgignore | |||
|
73 | $ rm 'foo#bar' 'quux#' 'baz\#wat' | |||
|
74 | ||||
58 | Check it does not ignore the current directory '.': |
|
75 | Check it does not ignore the current directory '.': | |
59 |
|
76 | |||
60 | $ echo "^\." > .hgignore |
|
77 | $ echo "^\." > .hgignore |
General Comments 0
You need to be logged in to leave comments.
Login now