2 $ cat >> $HGRCPATH <<EOF |
2 $ cat >> $HGRCPATH <<EOF |
3 > [alias] |
3 > [alias] |
4 > # should clobber ci but not commit (issue2993) |
4 > # should clobber ci but not commit (issue2993) |
5 > ci = version |
5 > ci = version |
6 > myinit = init |
6 > myinit = init |
|
7 > mycommit = commit |
7 > optionalrepo = showconfig alias.myinit |
8 > optionalrepo = showconfig alias.myinit |
8 > cleanstatus = status -c |
9 > cleanstatus = status -c |
9 > unknown = bargle |
10 > unknown = bargle |
10 > ambiguous = s |
11 > ambiguous = s |
11 > recursive = recursive |
12 > recursive = recursive |
39 > parentsshell2 = !echo two |
40 > parentsshell2 = !echo two |
40 > escaped1 = !printf 'test\$\$test\n' |
41 > escaped1 = !printf 'test\$\$test\n' |
41 > escaped2 = !sh -c 'echo "HGFOO is \$\$HGFOO"' |
42 > escaped2 = !sh -c 'echo "HGFOO is \$\$HGFOO"' |
42 > escaped3 = !sh -c 'echo "\$1 is \$\$\$1"' |
43 > escaped3 = !sh -c 'echo "\$1 is \$\$\$1"' |
43 > escaped4 = !printf '\$\$0 \$\$@\n' |
44 > escaped4 = !printf '\$\$0 \$\$@\n' |
|
45 > exit1 = !sh -c 'exit 1' |
44 > |
46 > |
45 > [defaults] |
47 > [defaults] |
46 > mylog = -q |
48 > mylog = -q |
47 > lognull = -q |
49 > lognull = -q |
48 > log = -v |
50 > log = -v |
56 |
58 |
57 unknown |
59 unknown |
58 |
60 |
59 $ hg unknown |
61 $ hg unknown |
60 alias 'unknown' resolves to unknown command 'bargle' |
62 alias 'unknown' resolves to unknown command 'bargle' |
|
63 [1] |
61 $ hg help unknown |
64 $ hg help unknown |
62 alias 'unknown' resolves to unknown command 'bargle' |
65 alias 'unknown' resolves to unknown command 'bargle' |
63 |
66 |
64 |
67 |
65 ambiguous |
68 ambiguous |
66 |
69 |
67 $ hg ambiguous |
70 $ hg ambiguous |
68 alias 'ambiguous' resolves to ambiguous command 's' |
71 alias 'ambiguous' resolves to ambiguous command 's' |
|
72 [1] |
69 $ hg help ambiguous |
73 $ hg help ambiguous |
70 alias 'ambiguous' resolves to ambiguous command 's' |
74 alias 'ambiguous' resolves to ambiguous command 's' |
71 |
75 |
72 |
76 |
73 recursive |
77 recursive |
74 |
78 |
75 $ hg recursive |
79 $ hg recursive |
76 alias 'recursive' resolves to unknown command 'recursive' |
80 alias 'recursive' resolves to unknown command 'recursive' |
|
81 [1] |
77 $ hg help recursive |
82 $ hg help recursive |
78 alias 'recursive' resolves to unknown command 'recursive' |
83 alias 'recursive' resolves to unknown command 'recursive' |
79 |
84 |
80 |
85 |
81 no definition |
86 no definition |
82 |
87 |
83 $ hg nodef |
88 $ hg nodef |
84 no definition for alias 'nodefinition' |
89 no definition for alias 'nodefinition' |
|
90 [1] |
85 $ hg help nodef |
91 $ hg help nodef |
86 no definition for alias 'nodefinition' |
92 no definition for alias 'nodefinition' |
87 |
93 |
88 |
94 |
89 invalid options |
95 invalid options |
90 |
96 |
91 $ hg no--cwd |
97 $ hg no--cwd |
92 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
98 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
|
99 [1] |
93 $ hg help no--cwd |
100 $ hg help no--cwd |
94 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
101 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
95 $ hg no-R |
102 $ hg no-R |
96 error in definition for alias 'no-R': -R may only be given on the command line |
103 error in definition for alias 'no-R': -R may only be given on the command line |
|
104 [1] |
97 $ hg help no-R |
105 $ hg help no-R |
98 error in definition for alias 'no-R': -R may only be given on the command line |
106 error in definition for alias 'no-R': -R may only be given on the command line |
99 $ hg no--repo |
107 $ hg no--repo |
100 error in definition for alias 'no--repo': --repo may only be given on the command line |
108 error in definition for alias 'no--repo': --repo may only be given on the command line |
|
109 [1] |
101 $ hg help no--repo |
110 $ hg help no--repo |
102 error in definition for alias 'no--repo': --repo may only be given on the command line |
111 error in definition for alias 'no--repo': --repo may only be given on the command line |
103 $ hg no--repository |
112 $ hg no--repository |
104 error in definition for alias 'no--repository': --repository may only be given on the command line |
113 error in definition for alias 'no--repository': --repository may only be given on the command line |
|
114 [1] |
105 $ hg help no--repository |
115 $ hg help no--repository |
106 error in definition for alias 'no--repository': --repository may only be given on the command line |
116 error in definition for alias 'no--repository': --repository may only be given on the command line |
107 $ hg no--config |
117 $ hg no--config |
108 error in definition for alias 'no--config': --config may only be given on the command line |
118 error in definition for alias 'no--config': --config may only be given on the command line |
|
119 [1] |
109 |
120 |
110 optional repository |
121 optional repository |
111 |
122 |
112 #if no-outer-repo |
123 #if no-outer-repo |
113 $ hg optionalrepo |
124 $ hg optionalrepo |