test-locate
31 lines
| 435 B
| text/plain
|
TextLexer
/ tests / test-locate
|
r1622 | #!/bin/sh | ||
# | ||||
mkdir t | ||||
cd t | ||||
hg init | ||||
echo 0 > a | ||||
echo 0 > b | ||||
|
r2487 | echo 0 > t.h | ||
|
r2480 | mkdir t | ||
echo 0 > t/x | ||||
|
r1933 | hg ci -A -m m -d "1000000 0" | ||
|
r1622 | touch nottracked | ||
hg locate a | ||||
hg locate NONEXISTENT | ||||
hg locate | ||||
hg rm a | ||||
|
r1933 | hg ci -m m -d "1000000 0" | ||
|
r1622 | hg locate a | ||
hg locate NONEXISTENT | ||||
hg locate | ||||
hg locate -r 0 a | ||||
hg locate -r 0 NONEXISTENT | ||||
hg locate -r 0 | ||||
|
r2480 | echo % -I/-X with relative path should work | ||
cd t | ||||
hg locate | ||||
hg locate -I ../t | ||||
|
r2487 | # test issue294 | ||
cd .. | ||||
|
r3988 | rm -r t | ||
|
r2487 | hg locate t | ||