##// END OF EJS Templates
change locate to use relglobs by default...
change locate to use relglobs by default This makes its default behaviour useful again (issue108), and changes it search the entire repository by default (instead of just the cwd), just like all other commands. It also hides issue204 by default, but you'll still see the same behaviour if you give it a relpath: pattern.

File last commit:

r3988:9dcf9d45 default
r4195:e8ee8fde default
Show More
test-locate
31 lines | 435 B | text/plain | TextLexer
Benoit Boissinot
fix locate broken since 63799b01985c...
r1622 #!/bin/sh
#
mkdir t
cd t
hg init
echo 0 > a
echo 0 > b
Brendan Cully
Test case for #294
r2487 echo 0 > t.h
Vadim Gelfer
fix -I/-X when relative paths used or in subdir
r2480 mkdir t
echo 0 > t/x
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -A -m m -d "1000000 0"
Benoit Boissinot
fix locate broken since 63799b01985c...
r1622 touch nottracked
hg locate a
hg locate NONEXISTENT
hg locate
hg rm a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m m -d "1000000 0"
Benoit Boissinot
fix locate broken since 63799b01985c...
r1622 hg locate a
hg locate NONEXISTENT
hg locate
hg locate -r 0 a
hg locate -r 0 NONEXISTENT
hg locate -r 0
Vadim Gelfer
fix -I/-X when relative paths used or in subdir
r2480 echo % -I/-X with relative path should work
cd t
hg locate
hg locate -I ../t
Brendan Cully
Test case for #294
r2487 # test issue294
cd ..
Thomas Arendsen Hein
Don't use -f for rm in tests where not needed. Drop /bin/ from /bin/rm.
r3988 rm -r t
Brendan Cully
Test case for #294
r2487 hg locate t