Mercurial > hg
view tests/test-alias @ 8477:a0104303f400
alias: honor the [defaults] section, fix issue1642
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 17 May 2009 16:15:37 +0200 |
parents | 5db730475d6d |
children | 5fbee915ea5d |
line wrap: on
line source
#!/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 [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 '% interaction with defaults' hg mylog hg lognull