equal
deleted
inserted
replaced
78 |
78 |
79 if (( $+functions[_hg_cmd_${cmd}] )) |
79 if (( $+functions[_hg_cmd_${cmd}] )) |
80 then |
80 then |
81 curcontext="${curcontext%:*:*}:hg-${cmd}:" |
81 curcontext="${curcontext%:*:*}:hg-${cmd}:" |
82 _hg_cmd_${cmd} |
82 _hg_cmd_${cmd} |
83 return |
83 else |
|
84 # complete unknown commands normally |
|
85 _arguments -s -w : $_hg_global_opts \ |
|
86 '*:files:_files -W $(_hg_cmd root)' |
84 fi |
87 fi |
85 } |
88 } |
86 |
89 |
87 _hg_get_commands() { |
90 _hg_get_commands() { |
88 typeset -ga _hg_cmd_list |
91 typeset -ga _hg_cmd_list |