view tests/test-alias @ 5607:e9bae5c80ab4

copy: minor cleanups - add after and dryrun variables - add some comments
author Matt Mackall <mpm@selenic.com>
date Fri, 07 Dec 2007 02:01:10 -0600
parents 5db730475d6d
children a0104303f400
line wrap: on
line source

#!/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