Show More
@@ -1,26 +1,31 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 | # |
|
2 | # | |
3 | mkdir t |
|
3 | mkdir t | |
4 | cd t |
|
4 | cd t | |
5 | hg init |
|
5 | hg init | |
6 | echo 0 > a |
|
6 | echo 0 > a | |
7 | echo 0 > b |
|
7 | echo 0 > b | |
|
8 | echo 0 > t.h | |||
8 | mkdir t |
|
9 | mkdir t | |
9 | echo 0 > t/x |
|
10 | echo 0 > t/x | |
10 | hg ci -A -m m -d "1000000 0" |
|
11 | hg ci -A -m m -d "1000000 0" | |
11 | touch nottracked |
|
12 | touch nottracked | |
12 | hg locate a |
|
13 | hg locate a | |
13 | hg locate NONEXISTENT |
|
14 | hg locate NONEXISTENT | |
14 | hg locate |
|
15 | hg locate | |
15 | hg rm a |
|
16 | hg rm a | |
16 | hg ci -m m -d "1000000 0" |
|
17 | hg ci -m m -d "1000000 0" | |
17 | hg locate a |
|
18 | hg locate a | |
18 | hg locate NONEXISTENT |
|
19 | hg locate NONEXISTENT | |
19 | hg locate |
|
20 | hg locate | |
20 | hg locate -r 0 a |
|
21 | hg locate -r 0 a | |
21 | hg locate -r 0 NONEXISTENT |
|
22 | hg locate -r 0 NONEXISTENT | |
22 | hg locate -r 0 |
|
23 | hg locate -r 0 | |
23 | echo % -I/-X with relative path should work |
|
24 | echo % -I/-X with relative path should work | |
24 | cd t |
|
25 | cd t | |
25 | hg locate |
|
26 | hg locate | |
26 | hg locate -I ../t |
|
27 | hg locate -I ../t | |
|
28 | # test issue294 | |||
|
29 | cd .. | |||
|
30 | rm -rf t | |||
|
31 | hg locate t |
@@ -1,21 +1,27 | |||||
1 | adding a |
|
1 | adding a | |
2 | adding b |
|
2 | adding b | |
|
3 | adding t.h | |||
3 | adding t/x |
|
4 | adding t/x | |
4 | a |
|
5 | a | |
5 | NONEXISTENT: No such file or directory |
|
6 | NONEXISTENT: No such file or directory | |
6 | a |
|
7 | a | |
7 | b |
|
8 | b | |
|
9 | t.h | |||
8 | t/x |
|
10 | t/x | |
9 | a: No such file or directory |
|
11 | a: No such file or directory | |
10 | NONEXISTENT: No such file or directory |
|
12 | NONEXISTENT: No such file or directory | |
11 | b |
|
13 | b | |
|
14 | t.h | |||
12 | t/x |
|
15 | t/x | |
13 | a |
|
16 | a | |
14 |
NONEXISTENT: No such file in rev |
|
17 | NONEXISTENT: No such file in rev ce18e5bc5cd3 | |
15 | a |
|
18 | a | |
16 | t/x |
|
19 | t/x | |
17 | b |
|
20 | b | |
|
21 | t.h | |||
18 | % -I/-X with relative path should work |
|
22 | % -I/-X with relative path should work | |
19 | b |
|
23 | b | |
|
24 | t.h | |||
20 | t/x |
|
25 | t/x | |
21 | t/x |
|
26 | t/x | |
|
27 | t/x |
General Comments 0
You need to be logged in to leave comments.
Login now