Mercurial > hg
annotate tests/test-alias.t @ 11904:122e3e0ba3e4
tests: unify test-keyword
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 13 Aug 2010 13:54:33 +0100 |
parents | 61b0a01182d5 |
children | f853873fc66d |
rev | line source |
---|---|
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
1 $ cat >> $HGRCPATH <<EOF |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
2 > [alias] |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
3 > myinit = init |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
4 > cleanstatus = status -c |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
5 > unknown = bargle |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
6 > ambiguous = s |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
7 > recursive = recursive |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
8 > nodefinition = |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
9 > no--cwd = status --cwd elsewhere |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
10 > no-R = status -R elsewhere |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
11 > no--repo = status --repo elsewhere |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
12 > no--repository = status --repository elsewhere |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
13 > mylog = log |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
14 > lognull = log -r null |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
15 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
16 > dln = lognull --debug |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
17 > nousage = rollback |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
18 > put = export -r 0 -o "\$FOO/%R.diff" |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
19 > echo = !echo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
20 > rt = root |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
21 > |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
22 > [defaults] |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
23 > mylog = -q |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
24 > lognull = -q |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
25 > log = -v |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
26 > EOF |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
27 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
28 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
29 basic |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
30 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
31 $ hg myinit alias |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
32 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
33 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
34 unknown |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
35 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
36 $ hg unknown |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
37 alias 'unknown' resolves to unknown command 'bargle' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
38 $ hg help unknown |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
39 alias 'unknown' resolves to unknown command 'bargle' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
40 |
4801 | 41 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
42 ambiguous |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
43 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
44 $ hg ambiguous |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
45 alias 'ambiguous' resolves to ambiguous command 's' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
46 $ hg help ambiguous |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
47 alias 'ambiguous' resolves to ambiguous command 's' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
48 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
49 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
50 recursive |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
51 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
52 $ hg recursive |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
53 alias 'recursive' resolves to unknown command 'recursive' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
54 $ hg help recursive |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
55 alias 'recursive' resolves to unknown command 'recursive' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
56 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
57 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
58 no definition |
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
59 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
60 $ hg nodef |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
61 no definition for alias 'nodefinition' |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
62 $ hg help nodef |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
63 no definition for alias 'nodefinition' |
4801 | 64 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
65 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
66 invalid options |
4801 | 67 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
68 $ hg no--cwd |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
69 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
70 $ hg help no--cwd |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
71 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
72 $ hg no-R |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
73 error in definition for alias 'no-R': -R may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
74 $ hg help no-R |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
75 error in definition for alias 'no-R': -R may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
76 $ hg no--repo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
77 error in definition for alias 'no--repo': --repo may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
78 $ hg help no--repo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
79 error in definition for alias 'no--repo': --repo may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
80 $ hg no--repository |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
81 error in definition for alias 'no--repository': --repository may only be given on the command line |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
82 $ hg help no--repository |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
83 error in definition for alias 'no--repository': --repository may only be given on the command line |
4801 | 84 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
85 $ cd alias |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
86 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
87 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
88 no usage |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
89 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
90 $ hg nousage |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
91 no rollback information available |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
92 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
93 $ echo foo > foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
94 $ hg ci -Amfoo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
95 adding foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
96 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
97 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
98 with opts |
8655 | 99 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
100 $ hg cleanst |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
101 C foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
102 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
103 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
104 with opts and whitespace |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
105 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
106 $ hg shortlog |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
107 0 e63c23eaa88a | 1970-01-01 00:00 +0000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
108 |
11695
ee8f36a6c766
alias: improved diagnostic when arguments include --cwd, etc.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
11681
diff
changeset
|
109 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
110 interaction with defaults |
9993
8bce1e0d2801
alias: do not crash when aliased command has no usage help text
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
8655
diff
changeset
|
111 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
112 $ hg mylog |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
113 0:e63c23eaa88a |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
114 $ hg lognull |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
115 -1:000000000000 |
9993
8bce1e0d2801
alias: do not crash when aliased command has no usage help text
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
8655
diff
changeset
|
116 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
117 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
118 properly recursive |
4801 | 119 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
120 $ hg dln |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
121 changeset: -1:0000000000000000000000000000000000000000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
122 parent: -1:0000000000000000000000000000000000000000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
123 parent: -1:0000000000000000000000000000000000000000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
124 manifest: -1:0000000000000000000000000000000000000000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
125 user: |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
126 date: Thu Jan 01 00:00:00 1970 +0000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
127 extra: branch=default |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
128 |
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
129 |
8519
5fbee915ea5d
alias: a0104303f400 did not correctly handle whitespace in the args
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
8477
diff
changeset
|
130 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
131 path expanding |
8655 | 132 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
133 $ FOO=`pwd` hg put |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
134 $ cat 0.diff |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
135 # HG changeset patch |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
136 # User test |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
137 # Date 0 0 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
138 # Node ID e63c23eaa88ae77967edcf4ea194d31167c478b0 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
139 # Parent 0000000000000000000000000000000000000000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
140 foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
141 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
142 diff -r 000000000000 -r e63c23eaa88a foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
143 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
144 +++ b/foo Thu Jan 01 00:00:00 1970 +0000 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
145 @@ -0,0 +1,1 @@ |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
146 +foo |
10793
16df09a54113
expand paths in aliases
Alexander Solovyov <piranha@piranha.org.ua>
parents:
10021
diff
changeset
|
147 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
148 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
149 shell aliases |
11676
e4357c214bf1
alias: ensure checksignature() is applied directly to the command (issue2286)
Brodie Rao <brodie@bitheap.org>
parents:
11460
diff
changeset
|
150 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
151 $ hg echo foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
152 foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
153 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
154 invalid arguments |
11676
e4357c214bf1
alias: ensure checksignature() is applied directly to the command (issue2286)
Brodie Rao <brodie@bitheap.org>
parents:
11460
diff
changeset
|
155 |
11814
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
156 $ hg rt foo |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
157 hg rt: invalid arguments |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
158 hg rt |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
159 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
160 alias for: hg root |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
161 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
162 print the root (top) of the current working directory |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
163 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
164 Print the root directory of the current repository. |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
165 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
166 Returns 0 on success. |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
167 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
168 use "hg -v help rt" to show global options |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
169 |
61b0a01182d5
tests: unify test-alias
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11695
diff
changeset
|
170 $ exit 0 |