Show More
@@ -1,5 +1,14 | |||
|
1 | 1 | #!/bin/sh |
|
2 | # | |
|
2 | ||
|
3 | hglocate() | |
|
4 | { | |
|
5 | echo "hg locate $@" | |
|
6 | hg locate "$@" | |
|
7 | ret=$? | |
|
8 | echo | |
|
9 | return $ret | |
|
10 | } | |
|
11 | ||
|
3 | 12 | mkdir t |
|
4 | 13 | cd t |
|
5 | 14 | hg init |
@@ -2,24 +2,48 adding a | |||
|
2 | 2 | adding b |
|
3 | 3 | adding t.h |
|
4 | 4 | adding t/x |
|
5 | hg locate a | |
|
5 | 6 | a |
|
7 | ||
|
6 | 8 | locate succeeded |
|
9 | hg locate NONEXISTENT | |
|
10 | ||
|
7 | 11 | locate failed |
|
12 | hg locate | |
|
8 | 13 | a |
|
9 | 14 | b |
|
10 | 15 | t.h |
|
11 | 16 | t/x |
|
17 | ||
|
18 | hg locate a | |
|
19 | ||
|
20 | hg locate NONEXISTENT | |
|
21 | ||
|
22 | hg locate | |
|
12 | 23 | b |
|
13 | 24 | t.h |
|
14 | 25 | t/x |
|
26 | ||
|
27 | hg locate -r 0 a | |
|
15 | 28 | a |
|
29 | ||
|
30 | hg locate -r 0 NONEXISTENT | |
|
31 | ||
|
32 | hg locate -r 0 | |
|
16 | 33 | a |
|
17 | 34 | b |
|
18 | 35 | t.h |
|
19 | 36 | t/x |
|
37 | ||
|
20 | 38 | % -I/-X with relative path should work |
|
39 | hg locate | |
|
21 | 40 | b |
|
22 | 41 | t.h |
|
23 | 42 | t/x |
|
43 | ||
|
44 | hg locate -I ../t | |
|
24 | 45 | t/x |
|
46 | ||
|
47 | hg locate t | |
|
25 | 48 | t/x |
|
49 |
General Comments 0
You need to be logged in to leave comments.
Login now