Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/zsh_completion @ 1365:74cf45f8bc19
Suppress warning in zsh_completion script
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 30 Sep 2005 11:06:13 -0700 |
parents | 246e1a00af6f |
children | d1d605d1e839 |
comparison
equal
deleted
inserted
replaced
1364:0f25830f6bc3 | 1365:74cf45f8bc19 |
---|---|
14 | 14 |
15 local curcontext="$curcontext" state line | 15 local curcontext="$curcontext" state line |
16 typeset -A opt_args | 16 typeset -A opt_args |
17 local subcmds repos tags newFiles addedFiles | 17 local subcmds repos tags newFiles addedFiles |
18 | 18 |
19 tags=($(hg tags | sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$//')) | 19 tags=($(hg tags 2> /dev/null | sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$// |
20 subcmds=($(hg -v help | sed -e '1,/^list of commands:/d' \ | 20 subcmds=($(hg -v help | sed -e '1,/^list of commands:/d' \ |
21 -e '/^global options:/,$d' -e '/^ [^ ]/!d; s/[,:]//g;')) | 21 -e '/^global options:/,$d' -e '/^ [^ ]/!d; s/[,:]//g;')) |
22 | 22 |
23 if [[ $service == "hg" ]]; then | 23 if [[ $service == "hg" ]]; then |
24 _arguments -C -A "-*" \ | 24 _arguments -C -A "-*" \ |