Test case for #294
authorBrendan Cully <brendan@kublai.com>
Fri, 23 Jun 2006 08:10:06 +0200
changeset 2487 041363739ca8
parent 2486 3ea8111ead90
child 2488 2785aeb51be4
child 2505 01b856927970
Test case for #294
tests/test-locate
tests/test-locate.out
--- a/tests/test-locate	Fri Jun 23 08:09:48 2006 +0200
+++ b/tests/test-locate	Fri Jun 23 08:10:06 2006 +0200
@@ -5,6 +5,7 @@
 hg init
 echo 0 > a
 echo 0 > b
+echo 0 > t.h
 mkdir t
 echo 0 > t/x
 hg ci -A -m m -d "1000000 0"
@@ -24,3 +25,7 @@
 cd t
 hg locate
 hg locate -I ../t
+# test issue294
+cd ..
+rm -rf t
+hg locate t
--- a/tests/test-locate.out	Fri Jun 23 08:09:48 2006 +0200
+++ b/tests/test-locate.out	Fri Jun 23 08:10:06 2006 +0200
@@ -1,21 +1,27 @@
 adding a
 adding b
+adding t.h
 adding t/x
 a
 NONEXISTENT: No such file or directory
 a
 b
+t.h
 t/x
 a: No such file or directory
 NONEXISTENT: No such file or directory
 b
+t.h
 t/x
 a
-NONEXISTENT: No such file in rev 9449ae447738
+NONEXISTENT: No such file in rev ce18e5bc5cd3
 a
 t/x
 b
+t.h
 % -I/-X with relative path should work
 b
+t.h
 t/x
 t/x
+t/x