diff tests/test-hgignore.t @ 28054:8515b813976b

debugignore: normalize the file before testing dirstate._ignore() With an ignore pattern containing a '/' and a Windows style path containing '\', status was properly ignoring the file, but debugignore was stating that it wasn't ignored.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 08 Feb 2016 12:33:00 -0500
parents 6ff556ef5a46
children 952017471f93
line wrap: on
line diff
--- a/tests/test-hgignore.t	Thu Feb 11 02:15:45 2016 +0900
+++ b/tests/test-hgignore.t	Mon Feb 08 12:33:00 2016 -0500
@@ -286,3 +286,16 @@
   $ hg debugignore dir1/file2
   dir1/file2 is ignored
   (ignore rule in dir2/.hgignore, line 1: 'file*2')
+
+#if windows
+
+Windows paths are accepted on input
+
+  $ rm dir1/.hgignore
+  $ echo "dir1/file*" >> .hgignore
+  $ hg debugignore "dir1\file2"
+  dir1\file2 is ignored
+  (ignore rule in $TESTTMP\ignorerepo\.hgignore, line 4: 'dir1/file*')
+  $ hg up -qC .
+
+#endif