test-locate
31 lines
| 436 B
| text/plain
|
TextLexer
/ tests / test-locate
Benoit Boissinot
|
r1622 | #!/bin/sh | ||
# | ||||
mkdir t | ||||
cd t | ||||
hg init | ||||
echo 0 > a | ||||
echo 0 > b | ||||
Brendan Cully
|
r2487 | echo 0 > t.h | ||
Vadim Gelfer
|
r2480 | mkdir t | ||
echo 0 > t/x | ||||
Thomas Arendsen Hein
|
r1933 | hg ci -A -m m -d "1000000 0" | ||
Benoit Boissinot
|
r1622 | touch nottracked | ||
hg locate a | ||||
hg locate NONEXISTENT | ||||
hg locate | ||||
hg rm a | ||||
Thomas Arendsen Hein
|
r1933 | hg ci -m m -d "1000000 0" | ||
Benoit Boissinot
|
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
|
r2480 | echo % -I/-X with relative path should work | ||
cd t | ||||
hg locate | ||||
hg locate -I ../t | ||||
Brendan Cully
|
r2487 | # test issue294 | ||
cd .. | ||||
rm -rf t | ||||
hg locate t | ||||