Mercurial > hg
comparison tests/test-alias.t @ 14265:e4ab5ae193f2
add positional arguments to non-shell aliases
author | Alexander Solovyov <alexander@solovyov.net> |
---|---|
date | Sun, 01 May 2011 12:29:32 +0200 |
parents | 14d0553bd48b |
children | 9a3831d64ae2 |
comparison
equal
deleted
inserted
replaced
14264:8e00906066c9 | 14265:e4ab5ae193f2 |
---|---|
15 > no--repo = status --repo elsewhere | 15 > no--repo = status --repo elsewhere |
16 > no--repository = status --repository elsewhere | 16 > no--repository = status --repository elsewhere |
17 > mylog = log | 17 > mylog = log |
18 > lognull = log -r null | 18 > lognull = log -r null |
19 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n' | 19 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n' |
20 > positional = log --template '{\$2} {\$1} | {date|isodate}\n' | |
20 > dln = lognull --debug | 21 > dln = lognull --debug |
21 > nousage = rollback | 22 > nousage = rollback |
22 > put = export -r 0 -o "\$FOO/%R.diff" | 23 > put = export -r 0 -o "\$FOO/%R.diff" |
23 > blank = !echo | 24 > blank = !echo |
24 > self = !echo '\$0' | 25 > self = !echo '\$0' |
125 with opts and whitespace | 126 with opts and whitespace |
126 | 127 |
127 $ hg shortlog | 128 $ hg shortlog |
128 0 e63c23eaa88a | 1970-01-01 00:00 +0000 | 129 0 e63c23eaa88a | 1970-01-01 00:00 +0000 |
129 | 130 |
131 positional arguments | |
132 | |
133 $ hg positional 'node|short' rev | |
134 0 e63c23eaa88a | 1970-01-01 00:00 +0000 | |
130 | 135 |
131 interaction with defaults | 136 interaction with defaults |
132 | 137 |
133 $ hg mylog | 138 $ hg mylog |
134 0:e63c23eaa88a | 139 0:e63c23eaa88a |