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