Mercurial > hg
comparison tests/test-alias.t @ 12656:929b424e1146
tests: add testcase for 208fc9ad6a48 to test-alias.t
The testsuite lacks a testcase for the bug introduced in 208fc9ad6a48.
This patch amends 301d7626e0ff (which fixed 208fc9ad6a48) by adding a
testcase for that bug.
With 208fc9ad6a48, test-alias.t (as modified by this patch) fails
with "hg tglog: invalid arguments".
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 09 Oct 2010 11:16:35 +0200 |
parents | 208fc9ad6a48 |
children | d10369fefd01 |
comparison
equal
deleted
inserted
replaced
12655:5192b24f309c | 12656:929b424e1146 |
---|---|
1 $ cat >> $HGRCPATH <<EOF | 1 $ cat >> $HGRCPATH <<EOF |
2 > [extensions] | |
3 > graphlog= | |
4 > | |
2 > [alias] | 5 > [alias] |
3 > myinit = init | 6 > myinit = init |
4 > cleanstatus = status -c | 7 > cleanstatus = status -c |
5 > unknown = bargle | 8 > unknown = bargle |
6 > ambiguous = s | 9 > ambiguous = s |
23 > echo2 = !echo '\$2' | 26 > echo2 = !echo '\$2' |
24 > echo13 = !echo '\$1' '\$3' | 27 > echo13 = !echo '\$1' '\$3' |
25 > count = !hg log -r '\$@' --template='.' | wc -c | sed -e 's/ //g' | 28 > count = !hg log -r '\$@' --template='.' | wc -c | sed -e 's/ //g' |
26 > mcount = !hg log \$@ --template='.' | wc -c | sed -e 's/ //g' | 29 > mcount = !hg log \$@ --template='.' | wc -c | sed -e 's/ //g' |
27 > rt = root | 30 > rt = root |
31 > tglog = glog --template "{rev}:{node|short}: '{desc}' {branches}\n" | |
28 > | 32 > |
29 > [defaults] | 33 > [defaults] |
30 > mylog = -q | 34 > mylog = -q |
31 > lognull = -q | 35 > lognull = -q |
32 > log = -v | 36 > log = -v |
182 $ hg count 'branch(default)' | 186 $ hg count 'branch(default)' |
183 2 | 187 2 |
184 $ hg mcount -r '"branch(default)"' | 188 $ hg mcount -r '"branch(default)"' |
185 2 | 189 2 |
186 | 190 |
191 $ hg tglog | |
192 @ 1:7e7f92de180e: 'bar' | |
193 | | |
194 o 0:e63c23eaa88a: 'foo' | |
195 | |
187 | 196 |
188 shell aliases with global options | 197 shell aliases with global options |
189 | 198 |
190 $ hg init sub | 199 $ hg init sub |
191 $ cd sub | 200 $ cd sub |