comparison tests/test-alias @ 8655:21688b8a594b

Move alias into core
author Brendan Cully <brendan@kublai.com>
date Sat, 30 May 2009 11:32:23 -0700
parents 5fbee915ea5d
children 8bce1e0d2801
comparison
equal deleted inserted replaced
8654:f6cc3638f468 8655:21688b8a594b
1 #!/bin/sh 1 #!/bin/sh
2 2
3 cat >> $HGRCPATH <<EOF 3 cat >> $HGRCPATH <<EOF
4 [extensions]
5 alias=
6
7 [alias] 4 [alias]
8 myinit = init 5 myinit = init
9 cleanstatus = status -c 6 cleanstatus = status -c
10 unknown = bargle 7 unknown = bargle
11 ambiguous = s 8 ambiguous = s
12 recursive = recursive 9 recursive = recursive
10 nodefinition =
13 mylog = log 11 mylog = log
14 lognull = log -r null 12 lognull = log -r null
15 shortlog = log --template '{rev} {node|short} | {date|isodate}\n' 13 shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
14 dln = lognull --debug
16 15
17 [defaults] 16 [defaults]
18 mylog = -q 17 mylog = -q
19 lognull = -q 18 lognull = -q
20 log = -v 19 log = -v
30 hg ambiguous 29 hg ambiguous
31 30
32 echo '% recursive' 31 echo '% recursive'
33 hg recursive 32 hg recursive
34 33
34 echo '% no definition'
35 hg nodef
36
35 cd alias 37 cd alias
36 echo foo > foo 38 echo foo > foo
37 hg ci -Amfoo 39 hg ci -Amfoo
38 40
39 echo '% with opts' 41 echo '% with opts'
43 hg shortlog 45 hg shortlog
44 46
45 echo '% interaction with defaults' 47 echo '% interaction with defaults'
46 hg mylog 48 hg mylog
47 hg lognull 49 hg lognull
50
51 echo '% properly recursive'
52 hg dln