tests/test-alias
author Matt Mackall <mpm@selenic.com>
Mon, 08 Oct 2007 18:47:12 -0500
changeset 5422 a3ba7ef98c94
parent 4800 6aa1fae4c28a
permissions -rwxr-xr-x
osutil: eliminate alloca call - make full_path a PATH_MAX + epsilon local buffer - use strncpy and strncat

#!/bin/sh

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

[alias]
myinit = init
cleanstatus = status -c
unknown = bargle
ambiguous = s
recursive = recursive
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