--- 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