diff tests/test-hgignore @ 4443:4e521a3ee5eb

Test issue 562: .hgignore requires newline at end
author Patrick Mezard <pmezard@gmail.com>
date Sat, 19 May 2007 22:46:59 +0200
parents 182f500805db
children ac97e065cfc7
line wrap: on
line diff
--- a/tests/test-hgignore
+++ b/tests/test-hgignore
@@ -1,6 +1,25 @@
 #!/bin/sh
 
 hg init
+
+# Test issue 562: .hgignore requires newline at end
+touch foo
+touch bar
+touch baz
+cat > makeignore.py <<EOF
+f = open(".hgignore", "w")
+f.write("ignore\n")
+f.write("foo\n")
+# No EOL here
+f.write("bar")
+f.close()
+EOF
+
+python makeignore.py
+echo % should display baz only
+hg status
+rm foo bar baz .hgignore makeignore.py
+
 touch a.o
 touch a.c
 touch syntax