tests/test-alias
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Fri, 17 Apr 2009 20:10:47 +0900
changeset 8553 e387ecd7a6ed
parent 8519 5fbee915ea5d
child 8655 21688b8a594b
permissions -rwxr-xr-x
inotify: change protocol so that different query types can be supported.

#!/bin/sh

cat >> $HGRCPATH <<EOF
[extensions]
alias=

[alias]
myinit = init
cleanstatus = status -c
unknown = bargle
ambiguous = s
recursive = recursive
mylog = log
lognull = log -r null
shortlog = log --template '{rev} {node|short} | {date|isodate}\n'

[defaults]
mylog = -q
lognull = -q
log = -v
EOF

echo '% basic'
hg myinit alias

echo '% unknown'
hg unknown

echo '% ambiguous'
hg ambiguous

echo '% recursive'
hg recursive

cd alias
echo foo > foo
hg ci -Amfoo

echo '% with opts'
hg cleanst

echo '% with opts and whitespace'
hg shortlog

echo '% interaction with defaults'
hg mylog
hg lognull