[PATCH 1 of 4] test-hgignore: conditionalize an illegal Windows filename

Matt Harbison mharbison72 at gmail.com
Mon Dec 14 02:56:39 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1450038980 18000
#      Sun Dec 13 15:36:20 2015 -0500
# Node ID fd7dae9c8cff40fb46f7ba3acb10879956f4c759
# Parent  944af8e2eb4cddf96ba5b8a96854528b40979715
test-hgignore: conditionalize an illegal Windows filename

diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t
--- a/tests/test-hgignore.t
+++ b/tests/test-hgignore.t
@@ -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 '.':
 


More information about the Mercurial-devel mailing list