--- a/tests/test-locate
+++ b/tests/test-locate
@@ -5,6 +5,7 @@ cd t
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 @@ echo % -I/-X with relative path should w
cd t
hg locate
hg locate -I ../t
+# test issue294
+cd ..
+rm -rf t
+hg locate t
--- a/tests/test-locate.out
+++ b/tests/test-locate.out
@@ -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