Show More
@@ -1,72 +1,72 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init a |
|
3 | hg init a | |
4 | cd a |
|
4 | cd a | |
5 | echo a > a |
|
5 | echo a > a | |
6 | hg ci -A -d'1 0' -m a |
|
6 | hg ci -A -d'1 0' -m a | |
7 |
|
7 | |||
8 | cd .. |
|
8 | cd .. | |
9 |
|
9 | |||
10 | hg init b |
|
10 | hg init b | |
11 | cd b |
|
11 | cd b | |
12 | echo b > b |
|
12 | echo b > b | |
13 | hg ci -A -d'1 0' -m b |
|
13 | hg ci -A -d'1 0' -m b | |
14 |
|
14 | |||
15 | cd .. |
|
15 | cd .. | |
16 |
|
16 | |||
17 | hg clone a c |
|
17 | hg clone a c | |
18 | cd c |
|
18 | cd c | |
19 | hg pull -f ../b |
|
19 | hg pull -f ../b | |
20 | HGMERGE=merge hg merge |
|
20 | HGMERGE=merge hg merge | |
21 |
|
21 | |||
22 | cd .. |
|
22 | cd .. | |
23 |
|
23 | |||
24 | echo %% -R/--repository |
|
24 | echo %% -R/--repository | |
25 | hg -R a tip |
|
25 | hg -R a tip | |
26 | hg --repository b tip |
|
26 | hg --repository b tip | |
27 |
|
27 | |||
28 | echo %% abbrev of long option |
|
28 | echo %% abbrev of long option | |
29 | hg --repo c tip |
|
29 | hg --repo c tip | |
30 |
|
30 | |||
31 | echo %% --cwd |
|
31 | echo %% --cwd | |
32 | hg --cwd a parents |
|
32 | hg --cwd a parents | |
33 |
|
33 | |||
34 | echo %% -y/--noninteractive - just be sure it is parsed |
|
34 | echo %% -y/--noninteractive - just be sure it is parsed | |
35 | hg --cwd a tip -q --noninteractive |
|
35 | hg --cwd a tip -q --noninteractive | |
36 | hg --cwd a tip -q -y |
|
36 | hg --cwd a tip -q -y | |
37 |
|
37 | |||
38 | echo %% -q/--quiet |
|
38 | echo %% -q/--quiet | |
39 | hg -R a -q tip |
|
39 | hg -R a -q tip | |
40 | hg -R b -q tip |
|
40 | hg -R b -q tip | |
41 | hg -R c --quiet parents |
|
41 | hg -R c --quiet parents | |
42 |
|
42 | |||
43 | echo %% -v/--verbose |
|
43 | echo %% -v/--verbose | |
44 | hg --cwd c head -v |
|
44 | hg --cwd c head -v | |
45 | hg --cwd b tip --verbose |
|
45 | hg --cwd b tip --verbose | |
46 |
|
46 | |||
47 | echo %% --config |
|
47 | echo %% --config | |
48 | hg --cwd c --config paths.quuxfoo=bar paths | grep -q quuxfoo && echo quuxfoo |
|
48 | hg --cwd c --config paths.quuxfoo=bar paths | grep -q quuxfoo && echo quuxfoo | |
49 | hg --cwd c --config '' tip -q |
|
49 | hg --cwd c --config '' tip -q | |
50 | hg --cwd c --config a.b tip -q |
|
50 | hg --cwd c --config a.b tip -q | |
51 | hg --cwd c --config a tip -q |
|
51 | hg --cwd c --config a tip -q | |
52 | hg --cwd c --config a.= tip -q |
|
52 | hg --cwd c --config a.= tip -q | |
53 | hg --cwd c --config .b= tip -q |
|
53 | hg --cwd c --config .b= tip -q | |
54 |
|
54 | |||
55 | echo %% --debug |
|
55 | echo %% --debug | |
56 | hg --cwd c log --debug |
|
56 | hg --cwd c log --debug | |
57 |
|
57 | |||
58 | echo %% --traceback |
|
58 | echo %% --traceback | |
59 | hg --cwd c --config x --traceback tip 2>&1 | grep -i 'traceback' |
|
59 | hg --cwd c --config x --traceback tip 2>&1 | grep -i 'traceback' | |
60 |
|
60 | |||
61 | echo %% --time |
|
61 | echo %% --time | |
62 | hg --cwd a --time tip 2>&1 | grep '^Time:' | sed 's/[0-9][0-9]*/x/g' |
|
62 | hg --cwd a --time tip 2>&1 | grep '^Time:' | sed 's/[0-9][0-9]*/x/g' | |
63 |
|
63 | |||
64 | echo %% --version |
|
64 | echo %% --version | |
65 |
hg --version -q | sed 's/version |
|
65 | hg --version -q | sed 's/version [^)]*/version xxx/' | |
66 |
|
66 | |||
67 | echo %% -h/--help |
|
67 | echo %% -h/--help | |
68 | hg -h |
|
68 | hg -h | |
69 | hg --help |
|
69 | hg --help | |
70 |
|
70 | |||
71 | echo %% not tested: --debugger |
|
71 | echo %% not tested: --debugger | |
72 |
|
72 |
General Comments 0
You need to be logged in to leave comments.
Login now