# HG changeset patch # User Matt Harbison # Date 1450038980 18000 # Node ID 988367ac2a2a3d74f6d083de6dc449debe5f3782 # Parent c7129ed280b8a693fb2a69fb2371c064d553e4f4 test-hgignore: conditionalize an illegal Windows filename diff -r c7129ed280b8 -r 988367ac2a2a tests/test-hgignore.t --- a/tests/test-hgignore.t Sat Dec 12 21:36:21 2015 -0600 +++ b/tests/test-hgignore.t Sun Dec 13 15:36:20 2015 -0500 @@ -57,7 +57,10 @@ Ensure that comments work: - $ touch 'foo#bar' 'quux#' 'baz\#wat' + $ touch 'foo#bar' 'quux#' +#if no-windows + $ touch 'baz\#wat' +#endif $ cat <<'EOF' >> .hgignore > # full-line comment > # whitespace-only comment line @@ -70,7 +73,10 @@ $ hg status A dir/b.o ? .hgignore - $ rm 'foo#bar' 'quux#' 'baz\#wat' + $ rm 'foo#bar' 'quux#' +#if no-windows + $ rm 'baz\#wat' +#endif Check it does not ignore the current directory '.':