Before this patch, zsh wouldn't complete --ssh, --remotecmd or --insecure for
hg clone.
While at it, replace --uncompressed by --stream.
hg-reviewers |
Before this patch, zsh wouldn't complete --ssh, --remotecmd or --insecure for
hg clone.
While at it, replace --uncompressed by --stream.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
'--color=[when to colorize]:when:(true false yes no always auto never debug)' | '--color=[when to colorize]:when:(true false yes no always auto never debug)' | ||||
'--pager=[when to paginate (default: auto)]:when:(true false yes no always auto never)' | '--pager=[when to paginate (default: auto)]:when:(true false yes no always auto never)' | ||||
) | ) | ||||
_hg_pat_opts=( | _hg_pat_opts=( | ||||
'*'{-I+,--include=}'[include names matching the given patterns]:pattern:_files -W $(_hg_cmd root) -/' | '*'{-I+,--include=}'[include names matching the given patterns]:pattern:_files -W $(_hg_cmd root) -/' | ||||
'*'{-X+,--exclude=}'[exclude names matching the given patterns]:pattern:_files -W $(_hg_cmd root) -/') | '*'{-X+,--exclude=}'[exclude names matching the given patterns]:pattern:_files -W $(_hg_cmd root) -/') | ||||
_hg_clone_opts=( | |||||
$_hg_remote_opts | |||||
'(--noupdate -U)'{-U,--noupdate}'[do not update the new working directory]' | |||||
'--pull[use pull protocol to copy metadata]' | |||||
'--uncompressed[use uncompressed transfer (fast over LAN)]') | |||||
_hg_date_user_opts=( | _hg_date_user_opts=( | ||||
'(--currentdate -D)'{-D,--currentdate}'[record the current date as commit date]' | '(--currentdate -D)'{-D,--currentdate}'[record the current date as commit date]' | ||||
'(--currentuser -U)'{-U,--currentuser}'[record the current user as committer]' | '(--currentuser -U)'{-U,--currentuser}'[record the current user as committer]' | ||||
'(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date' | '(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date' | ||||
'(--user -u)'{-u+,--user=}'[record the specified user as committer]:user') | '(--user -u)'{-u+,--user=}'[record the specified user as committer]:user') | ||||
_hg_gitlike_opts=( | _hg_gitlike_opts=( | ||||
'(--git -g)'{-g,--git}'[use git extended diff format]') | '(--git -g)'{-g,--git}'[use git extended diff format]') | ||||
'(-e --edit -m --message --logfile -l)'{-l+,--logfile=}'[read the commit message from <file>]:log file:_files') | '(-e --edit -m --message --logfile -l)'{-l+,--logfile=}'[read the commit message from <file>]:log file:_files') | ||||
_hg_remote_opts=( | _hg_remote_opts=( | ||||
'(--ssh -e)'{-e+,--ssh=}'[specify ssh command to use]:command' | '(--ssh -e)'{-e+,--ssh=}'[specify ssh command to use]:command' | ||||
'--remotecmd=[specify hg command to run on the remote side]:remote command' | '--remotecmd=[specify hg command to run on the remote side]:remote command' | ||||
'--insecure[do not verify server certificate (ignoring web.cacerts config)]' | '--insecure[do not verify server certificate (ignoring web.cacerts config)]' | ||||
) | ) | ||||
_hg_clone_opts=( | |||||
$_hg_remote_opts | |||||
'(--noupdate -U)'{-U,--noupdate}'[do not update the new working directory]' | |||||
'--pull[use pull protocol to copy metadata]' | |||||
'--stream[clone with minimal data processing]' | |||||
) | |||||
_hg_subrepos_opts=( | _hg_subrepos_opts=( | ||||
'(--subrepos -S)'{-S,--subrepos}'[recurse into subrepositories]') | '(--subrepos -S)'{-S,--subrepos}'[recurse into subrepositories]') | ||||
_hg_cmd() { | _hg_cmd() { | ||||
_call_program hg HGPLAIN=1 hg "$_hg_cmd_globals[@]" "$@" 2> /dev/null | _call_program hg HGPLAIN=1 hg "$_hg_cmd_globals[@]" "$@" 2> /dev/null | ||||
} | } | ||||
_hg_cmd_add() { | _hg_cmd_add() { |