##// END OF EJS Templates
dispatch: add shell aliases...
dispatch: add shell aliases This patch adds git-style "shell aliases" to Mercurial. Any alias with a definition beginning with a '!' will be treated as a shell alias. For example: [alias] echo = !echo qempty = !hg qrefresh -X "`hg root`" ; echo Emptied patch "`hg qtop`" $ hg echo foo foo $ hg qempty Emptied patch foo $

File last commit:

r11524:24965bb2 default
r11524:24965bb2 default
Show More
test-alias
70 lines | 942 B | text/plain | TextLexer
Brendan Cully
Add alias extension
r4801 #!/bin/sh
Alexis S. L. Carvalho
tests/*: avoid losing the original settings from $HGRCPATH
r5523 cat >> $HGRCPATH <<EOF
Brendan Cully
Add alias extension
r4801 [alias]
myinit = init
cleanstatus = status -c
unknown = bargle
ambiguous = s
recursive = recursive
Brendan Cully
Move alias into core
r8655 nodefinition =
Benoit Boissinot
alias: honor the [defaults] section, fix issue1642
r8477 mylog = log
lognull = log -r null
Benoit Boissinot
alias: a0104303f400 did not correctly handle whitespace in the args
r8519 shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
Brendan Cully
Move alias into core
r8655 dln = lognull --debug
Nicolas Dumazet
alias: do not crash when aliased command has no usage help text
r9993 nousage = rollback
Mads Kiilerich
test-alias: don't use the environment variable PWD...
r11460 put = export -r 0 -o "\$FOO/%R.diff"
Steve Losh
dispatch: add shell aliases...
r11524 echo = !echo
Benoit Boissinot
alias: honor the [defaults] section, fix issue1642
r8477
[defaults]
mylog = -q
lognull = -q
log = -v
Brendan Cully
Add alias extension
r4801 EOF
echo '% basic'
hg myinit alias
echo '% unknown'
hg unknown
Brodie Rao
help: don't display bogus help messages for invalid aliases
r10021 hg help unknown
Brendan Cully
Add alias extension
r4801
echo '% ambiguous'
hg ambiguous
Brodie Rao
help: don't display bogus help messages for invalid aliases
r10021 hg help ambiguous
Brendan Cully
Add alias extension
r4801
echo '% recursive'
hg recursive
Brodie Rao
help: don't display bogus help messages for invalid aliases
r10021 hg help recursive
Brendan Cully
Add alias extension
r4801
Brendan Cully
Move alias into core
r8655 echo '% no definition'
hg nodef
Brodie Rao
help: don't display bogus help messages for invalid aliases
r10021 hg help nodef
Brendan Cully
Move alias into core
r8655
Brendan Cully
Add alias extension
r4801 cd alias
Nicolas Dumazet
alias: do not crash when aliased command has no usage help text
r9993
echo '% no usage'
hg nousage
Brendan Cully
Add alias extension
r4801 echo foo > foo
hg ci -Amfoo
echo '% with opts'
hg cleanst
Benoit Boissinot
alias: honor the [defaults] section, fix issue1642
r8477
Benoit Boissinot
alias: a0104303f400 did not correctly handle whitespace in the args
r8519 echo '% with opts and whitespace'
hg shortlog
Benoit Boissinot
alias: honor the [defaults] section, fix issue1642
r8477 echo '% interaction with defaults'
hg mylog
hg lognull
Brendan Cully
Move alias into core
r8655
echo '% properly recursive'
hg dln
Alexander Solovyov
expand paths in aliases
r10793
echo '% path expanding'
Mads Kiilerich
test-alias: don't use the environment variable PWD...
r11460 FOO=`pwd` hg put
Alexander Solovyov
expand paths in aliases
r10793 cat 0.diff
Steve Losh
dispatch: add shell aliases...
r11524
echo '% shell aliases'
hg echo foo