Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGa2d17b699628: zsh_completion: add new and remove deprecated flags
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | contrib/zsh_completion (27 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Anton Shestakov | Sep 10 2018, 4:47 AM |
'(--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]') | ||||
_hg_diff_opts=( | _hg_diff_opts=( | ||||
$_hg_gitlike_opts | $_hg_gitlike_opts | ||||
'(--text -a)'{-a,--text}'[treat all files as text]' | '(--text -a)'{-a,--text}'[treat all files as text]' | ||||
'--nodates[omit dates from diff headers]') | '--binary[generate binary diffs in git mode (default)]' | ||||
'--nodates[omit dates from diff headers]' | |||||
) | |||||
_hg_mergetool_opts=( | _hg_mergetool_opts=( | ||||
'(--tool -t)'{-t+,--tool=}'[specify merge tool]:merge tool:_hg_merge_tools' | '(--tool -t)'{-t+,--tool=}'[specify merge tool]:merge tool:_hg_merge_tools' | ||||
) | ) | ||||
_hg_dryrun_opts=( | _hg_dryrun_opts=( | ||||
'(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]') | '(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]') | ||||
'(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_labels' \ | '(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_labels' \ | ||||
'(--type -t)'{-t+,--type=}'[type of distribution to create]:archive type:(files tar tbz2 tgz uzip zip)' \ | '(--type -t)'{-t+,--type=}'[type of distribution to create]:archive type:(files tar tbz2 tgz uzip zip)' \ | ||||
'*:destination:_files' | '*:destination:_files' | ||||
} | } | ||||
_hg_cmd_backout() { | _hg_cmd_backout() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \ | _arguments -s -S : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \ | ||||
'--merge[merge with old dirstate parent after backout]' \ | '--merge[merge with old dirstate parent after backout]' \ | ||||
'--no-commit[do not commit]' \ | |||||
'(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date' \ | '(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date' \ | ||||
'--parent[parent to choose when backing out merge]' \ | |||||
'(--user -u)'{-u+,--user=}'[record the specified user as committer]:user' \ | '(--user -u)'{-u+,--user=}'[record the specified user as committer]:user' \ | ||||
'(--rev -r 1)'{-r+,--rev=}'[revision to backout]:revision:_hg_labels' \ | '(--rev -r 1)'{-r+,--rev=}'[revision to backout]:revision:_hg_labels' \ | ||||
'(--message -m)'{-m+,--message=}'[use <text> as commit message]:text' \ | '(--message -m)'{-m+,--message=}'[use <text> as commit message]:text' \ | ||||
'(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files' \ | '(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files' \ | ||||
':revision:_hg_labels' | ':revision:_hg_labels' | ||||
} | } | ||||
_hg_cmd_bisect() { | _hg_cmd_bisect() { | ||||
typeset -A opt_args | typeset -A opt_args | ||||
_arguments -s -S : $_hg_global_opts $_hg_diff_opts $_hg_ignore_space_opts \ | _arguments -s -S : $_hg_global_opts $_hg_diff_opts $_hg_ignore_space_opts \ | ||||
$_hg_pat_opts $_hg_subrepos_opts \ | $_hg_pat_opts $_hg_subrepos_opts \ | ||||
'*'{-r+,--rev=}'[revision]:revision:_hg_revrange' \ | '*'{-r+,--rev=}'[revision]:revision:_hg_revrange' \ | ||||
'--noprefix[omit a/ and b/ prefixes from filenames]' \ | '--noprefix[omit a/ and b/ prefixes from filenames]' \ | ||||
'(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ | ||||
'(--change -c)'{-c+,--change=}'[change made by revision]:revision:_hg_labels' \ | '(--change -c)'{-c+,--change=}'[change made by revision]:revision:_hg_labels' \ | ||||
'(--text -a)'{-a,--text}'[treat all files as text]' \ | |||||
'--reverse[produce a diff that undoes the changes]' \ | '--reverse[produce a diff that undoes the changes]' \ | ||||
'(--unified -U)'{-U+,--unified=}'[number of lines of context to show]:count' \ | '(--unified -U)'{-U+,--unified=}'[number of lines of context to show]:count' \ | ||||
'--stat[output diffstat-style summary of changes]' \ | '--stat[output diffstat-style summary of changes]' \ | ||||
'--root=[produce diffs relative to subdirectory]:directory:_files -/' \ | '--root=[produce diffs relative to subdirectory]:directory:_files -/' \ | ||||
'*:file:->diff_files' && ret=0 | '*:file:->diff_files' && ret=0 | ||||
if [[ $state == 'diff_files' ]] | if [[ $state == 'diff_files' ]] | ||||
then | then | ||||
if [[ -n ${opt_args[(I)-r|--rev]} ]] | if [[ -n ${opt_args[(I)-r|--rev]} ]] | ||||
then | then | ||||
_hg_files && ret=0 | _hg_files && ret=0 | ||||
else | else | ||||
_hg_committable && ret=0 | _hg_committable && ret=0 | ||||
fi | fi | ||||
fi | fi | ||||
return ret | return ret | ||||
} | } | ||||
_hg_cmd_export() { | _hg_cmd_export() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_diff_opts \ | _arguments -s -S : $_hg_global_opts $_hg_diff_opts \ | ||||
'(--bookmark -B)'{-B+,--bookmark=}'[export changes only reachable by given bookmark]:bookmark:_hg_bookmarks' \ | |||||
'(--output -o)'{-o+,--output=}'[print output to file with formatted name]:format string' \ | '(--output -o)'{-o+,--output=}'[print output to file with formatted name]:format string' \ | ||||
'--switch-parent[diff against the second parent]' \ | '--switch-parent[diff against the second parent]' \ | ||||
'*'{-r+,--rev=}'[revisions to export]:revision:_hg_labels' \ | '*'{-r+,--rev=}'[revisions to export]:revision:_hg_labels' \ | ||||
'*:revision:_hg_labels' | '*:revision:_hg_labels' | ||||
} | } | ||||
_hg_cmd_files() { | _hg_cmd_files() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | ||||
_hg_cmd_graft() { | _hg_cmd_graft() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ | _arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ | ||||
$_hg_date_user_opts $_hg_mergetool_opts \ | $_hg_date_user_opts $_hg_mergetool_opts \ | ||||
'*'{-r+,--rev=}'[revisions to graft]:revision:_hg_labels' \ | '*'{-r+,--rev=}'[revisions to graft]:revision:_hg_labels' \ | ||||
'(--continue -c --abort -a)'{-c,--continue}'[resume interrupted graft]' \ | '(--continue -c --abort -a)'{-c,--continue}'[resume interrupted graft]' \ | ||||
'(--continue -c --abort -a)'{-a,--abort}'[abort interrupted graft]' \ | '(--continue -c --abort -a)'{-a,--abort}'[abort interrupted graft]' \ | ||||
'(--edit -e)'{-e,--edit}'[invoke editor on commit messages]' \ | '(--edit -e)'{-e,--edit}'[invoke editor on commit messages]' \ | ||||
'--log[append graft info to log message]' \ | '--log[append graft info to log message]' \ | ||||
"--no-commit[don't commit, just apply the changes in working directory]" \ | |||||
'(--force -f)'{-f,--force}'[force graft]' \ | |||||
'*:revision:_hg_labels' | '*:revision:_hg_labels' | ||||
} | } | ||||
_hg_cmd_grep() { | _hg_cmd_grep() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | ||||
'(--print0 -0)'{-0,--print0}'[end fields with NUL]' \ | '(--print0 -0)'{-0,--print0}'[end fields with NUL]' \ | ||||
'--all[print all revisions with matches]' \ | '--diff[print all revisions when the term was introduced or removed]' \ | ||||
'(--text -a)'{-a,--text}'[treat all files as text]' \ | |||||
'(--follow -f)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' \ | '(--follow -f)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' \ | ||||
'(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \ | '(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \ | ||||
'(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revisions that match]' \ | '(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revisions that match]' \ | ||||
'(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \ | '(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \ | ||||
'*'{-r+,--rev=}'[only search files changed within revision range]:revision:_hg_revrange' \ | '*'{-r+,--rev=}'[only search files changed within revision range]:revision:_hg_revrange' \ | ||||
'(--user -u)'{-u,--user}'[list the author (long with -v)]' \ | '(--user -u)'{-u,--user}'[list the author (long with -v)]' \ | ||||
'(--date -d)'{-d,--date}'[list the date (short with -q)]' \ | '(--date -d)'{-d,--date}'[list the date (short with -q)]' \ | ||||
'1:search pattern:' \ | '1:search pattern:' \ | ||||
'*:files:_hg_files' | '*:files:_hg_files' | ||||
} | } | ||||
_hg_cmd_heads() { | _hg_cmd_heads() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_template_opts \ | _arguments -s -S : $_hg_global_opts $_hg_template_opts \ | ||||
'(--topo -t)'{-t,--topo}'[show topological heads only]' \ | '(--topo -t)'{-t,--topo}'[show topological heads only]' \ | ||||
'(--closed -c)'{-c,--closed}'[show normal and closed branch heads]' \ | '(--closed -c)'{-c,--closed}'[show normal and closed branch heads]' \ | ||||
'(--rev -r)'{-r+,--rev=}'[show only heads which are descendants of revision]:revision:_hg_labels' | '(--rev -r)'{-r+,--rev=}'[show only heads which are descendants of revision]:revision:_hg_labels' | ||||
} | } | ||||
_hg_cmd_help() { | _hg_cmd_help() { | ||||
_arguments -s -S : $_hg_global_opts \ | _arguments -s -S : $_hg_global_opts \ | ||||
'(--extension -e)'{-e,--extension}'[show only help for extensions]' \ | '(--extension -e)'{-e,--extension}'[show only help for extensions]' \ | ||||
'(--command -c)'{-c,--command}'[show only help for commands]' \ | '(--command -c)'{-c,--command}'[show only help for commands]' \ | ||||
'(--keyword -k)'{-k,--keyword}'[show topics matching keyword]' \ | '(--keyword -k)'{-k,--keyword}'[show topics matching keyword]' \ | ||||
'*'{-s+,--system=}'[show help for specific platform(s)]:platform:(windows vms plan9 unix)' \ | |||||
'*:mercurial help topic:_hg_help_topics' | '*:mercurial help topic:_hg_help_topics' | ||||
} | } | ||||
_hg_cmd_identify() { | _hg_cmd_identify() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_remote_opts \ | _arguments -s -S : $_hg_global_opts $_hg_remote_opts \ | ||||
'(--rev -r)'{-r+,--rev=}'[identify the specified revision]:revision:_hg_labels' \ | '(--rev -r)'{-r+,--rev=}'[identify the specified revision]:revision:_hg_labels' \ | ||||
'(--num -n)'{-n,--num}'[show local revision number]' \ | '(--num -n)'{-n,--num}'[show local revision number]' \ | ||||
'(--id -i)'{-i,--id}'[show global revision id]' \ | '(--id -i)'{-i,--id}'[show global revision id]' \ | ||||
'(--branch -b)'{-b,--branch}'[show branch]' \ | '(--branch -b)'{-b,--branch}'[show branch]' \ | ||||
'(--bookmarks -B)'{-B,--bookmarks}'[show bookmarks]' \ | '(--bookmarks -B)'{-B,--bookmarks}'[show bookmarks]' \ | ||||
'(--tags -t)'{-t,--tags}'[show tags]' | '(--tags -t)'{-t,--tags}'[show tags]' | ||||
} | } | ||||
_hg_cmd_import() { | _hg_cmd_import() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_commit_opts \ | _arguments -s -S : $_hg_global_opts $_hg_commit_opts \ | ||||
'(--strip -p)'{-p+,--strip=}'[directory strip option for patch (default: 1)]:count' \ | '(--strip -p)'{-p+,--strip=}'[directory strip option for patch (default: 1)]:count' \ | ||||
'(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \ | |||||
'--bypass[apply patch without touching the working directory]' \ | '--bypass[apply patch without touching the working directory]' \ | ||||
'--no-commit[do not commit, just update the working directory]' \ | '--no-commit[do not commit, just update the working directory]' \ | ||||
'--partial[commit even if some hunks fail]' \ | '--partial[commit even if some hunks fail]' \ | ||||
'--exact[abort if patch would apply lossily]' \ | '--exact[abort if patch would apply lossily]' \ | ||||
'--prefix=[apply patch to subdirectory]:directory:_files -/' \ | |||||
'--import-branch[use any branch information in patch (implied by --exact)]' \ | '--import-branch[use any branch information in patch (implied by --exact)]' \ | ||||
'(--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' \ | ||||
'(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:similarity' \ | '(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:similarity' \ | ||||
'*:patch:_files' | '*:patch:_files' | ||||
} | } | ||||
_hg_cmd_incoming() { | _hg_cmd_incoming() { | ||||
'(--rev -r)'{-r+,--rev=}'[search the repository as it is in revision]:revision:_hg_labels' \ | '(--rev -r)'{-r+,--rev=}'[search the repository as it is in revision]:revision:_hg_labels' \ | ||||
'(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \ | '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \ | ||||
'(--fullpath -f)'{-f,--fullpath}'[print complete paths from the filesystem root]' \ | '(--fullpath -f)'{-f,--fullpath}'[print complete paths from the filesystem root]' \ | ||||
'*:search pattern:_hg_files' | '*:search pattern:_hg_files' | ||||
} | } | ||||
_hg_cmd_log() { | _hg_cmd_log() { | ||||
_arguments -s -S : $_hg_log_opts $_hg_pat_opts \ | _arguments -s -S : $_hg_log_opts $_hg_pat_opts \ | ||||
'(--follow --follow-first -f)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' \ | '(--follow -f)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' \ | ||||
'(-f --follow)--follow-first[only follow the first parent of merge changesets]' \ | |||||
'(--copies -C)'{-C,--copies}'[show copied files]' \ | '(--copies -C)'{-C,--copies}'[show copied files]' \ | ||||
'*'{-k+,--keyword=}'[search for a keyword]:keyword' \ | '*'{-k+,--keyword=}'[search for a keyword]:keyword' \ | ||||
'*'{-r+,--rev=}'[show the specified revision or revset]:revision:_hg_revrange' \ | '*'{-r+,--rev=}'[show the specified revision or revset]:revision:_hg_revrange' \ | ||||
'--removed[include revisions where files were removed]' \ | |||||
'(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ | '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ | ||||
'*'{-P+,--prune=}'[do not display revision or any of its ancestors]:revision:_hg_labels' \ | '*'{-P+,--prune=}'[do not display revision or any of its ancestors]:revision:_hg_labels' \ | ||||
'*'{-b+,--branch=}'[show changesets within the given named branch]:branch:_hg_branches' \ | '*'{-b+,--branch=}'[show changesets within the given named branch]:branch:_hg_branches' \ | ||||
'*'{-u+,--user=}'[revisions committed by user]:user' \ | '*'{-u+,--user=}'[revisions committed by user]:user' \ | ||||
'(--date -d)'{-d+,--date=}'[show revisions matching date spec]:date' \ | '(--date -d)'{-d+,--date=}'[show revisions matching date spec]:date' \ | ||||
'*:files:_hg_files' | '*:files:_hg_files' | ||||
} | } | ||||
_hg_cmd_manifest() { | _hg_cmd_manifest() { | ||||
_arguments -s -S : $_hg_global_opts \ | _arguments -s -S : $_hg_global_opts \ | ||||
'--all[list files from all revisions]' \ | '--all[list files from all revisions]' \ | ||||
'(--rev -r)'{-r+,--rev=}'[revision to display]:revision:_hg_labels' \ | '(--rev -r)'{-r+,--rev=}'[revision to display]:revision:_hg_labels' \ | ||||
':revision:_hg_labels' | ':revision:_hg_labels' | ||||
} | } | ||||
_hg_cmd_merge() { | _hg_cmd_merge() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_mergetool_opts \ | _arguments -s -S : $_hg_global_opts $_hg_mergetool_opts \ | ||||
'(--force -f)'{-f,--force}'[force a merge with outstanding changes]' \ | |||||
'(--rev -r 1)'{-r+,--rev=}'[revision to merge]:revision:_hg_mergerevs' \ | '(--rev -r 1)'{-r+,--rev=}'[revision to merge]:revision:_hg_mergerevs' \ | ||||
'(--preview -P)'{-P,--preview}'[review revisions to merge (no merge is performed)]' \ | '(--preview -P)'{-P,--preview}'[review revisions to merge (no merge is performed)]' \ | ||||
'(- :)--abort[abort the ongoing merge]' \ | |||||
':revision:_hg_mergerevs' | ':revision:_hg_mergerevs' | ||||
} | } | ||||
_hg_cmd_outgoing() { | _hg_cmd_outgoing() { | ||||
_arguments -s -S : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | _arguments -s -S : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | ||||
$_hg_subrepos_opts \ | $_hg_subrepos_opts \ | ||||
'(--force -f)'{-f,--force}'[run even when the destination is unrelated]' \ | '(--force -f)'{-f,--force}'[run even when the destination is unrelated]' \ | ||||
'*'{-r+,--rev=}'[a changeset intended to be included in the destination]:revision:_hg_revrange' \ | '*'{-r+,--rev=}'[a changeset intended to be included in the destination]:revision:_hg_revrange' \ | ||||
'--no-backup[do not save backup copies of files]' \ | '--no-backup[do not save backup copies of files]' \ | ||||
'*:unapplied patch:_hg_qunapplied' | '*:unapplied patch:_hg_qunapplied' | ||||
} | } | ||||
_hg_cmd_qgoto() { | _hg_cmd_qgoto() { | ||||
_arguments -s -S : $_hg_global_opts \ | _arguments -s -S : $_hg_global_opts \ | ||||
'(--force -f)'{-f,--force}'[overwrite any local changes]' \ | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ | ||||
'--keep-changes[tolerate non-conflicting local changes]' \ | '--keep-changes[tolerate non-conflicting local changes]' \ | ||||
'--no-backup[do not save backup copies of files]' \ | |||||
':patch:_hg_qseries' | ':patch:_hg_qseries' | ||||
} | } | ||||
_hg_cmd_qguard() { | _hg_cmd_qguard() { | ||||
_arguments -s -S : $_hg_global_opts \ | _arguments -s -S : $_hg_global_opts \ | ||||
'(--list -l)'{-l,--list}'[list all patches and guards]' \ | '(--list -l)'{-l,--list}'[list all patches and guards]' \ | ||||
'(--none -n)'{-n,--none}'[drop all guards]' \ | '(--none -n)'{-n,--none}'[drop all guards]' \ | ||||
':patch:_hg_qseries' \ | ':patch:_hg_qseries' \ | ||||
# Patchbomb | # Patchbomb | ||||
_hg_cmd_email() { | _hg_cmd_email() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_remote_opts $_hg_gitlike_opts \ | _arguments -s -S : $_hg_global_opts $_hg_remote_opts $_hg_gitlike_opts \ | ||||
'--plain[omit hg patch header]' \ | '--plain[omit hg patch header]' \ | ||||
'--body[send patches as inline message text (default)]' \ | '--body[send patches as inline message text (default)]' \ | ||||
'(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \ | '(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \ | ||||
'(--bundle -b)'{-b,--bundle}'[send changes not in target as a binary bundle]' \ | '(--bundle -b)'{-b,--bundle}'[send changes not in target as a binary bundle]' \ | ||||
'(--bookmark -B)'{-B+,--bookmark=}'[send changes only reachable by given bookmark]:bookmark:_hg_bookmarks' \ | |||||
'--bundlename=[name of the bundle attachment file (default: bundle)]:name' \ | '--bundlename=[name of the bundle attachment file (default: bundle)]:name' \ | ||||
'*'{-r+,--rev=}'[a revision to send]:revision:_hg_revrange' \ | '*'{-r+,--rev=}'[a revision to send]:revision:_hg_revrange' \ | ||||
'--force[run even when remote repository is unrelated (with -b/--bundle)]' \ | '--force[run even when remote repository is unrelated (with -b/--bundle)]' \ | ||||
'*--base=[a base changeset to specify instead of a destination (with -b/--bundle)]:revision:_hg_labels' \ | '*--base=[a base changeset to specify instead of a destination (with -b/--bundle)]:revision:_hg_labels' \ | ||||
'--intro[send an introduction email for a single patch]' \ | '--intro[send an introduction email for a single patch]' \ | ||||
'(--inline -i --attach -a)'{-a,--attach}'[send patches as attachments]' \ | '(--inline -i --attach -a)'{-a,--attach}'[send patches as attachments]' \ | ||||
'(--attach -a --inline -i)'{-i,--inline}'[send patches as inline attachments]' \ | '(--attach -a --inline -i)'{-i,--inline}'[send patches as inline attachments]' \ | ||||
'*--bcc=[email addresses of blind carbon copy recipients]:email' \ | '*--bcc=[email addresses of blind carbon copy recipients]:email' \ | ||||
'*'{-c+,--cc=}'[email addresses of copy recipients]:email' \ | '*'{-c+,--cc=}'[email addresses of copy recipients]:email' \ | ||||
'--confirm[ask for confirmation before sending]' \ | |||||
'(--diffstat -d)'{-d,--diffstat}'[add diffstat output to messages]' \ | '(--diffstat -d)'{-d,--diffstat}'[add diffstat output to messages]' \ | ||||
'--date=[use the given date as the sending date]:date' \ | '--date=[use the given date as the sending date]:date' \ | ||||
'--desc=[use the given file as the series description]:files:_files' \ | '--desc=[use the given file as the series description]:files:_files' \ | ||||
'(--from -f)'{-f+,--from=}'[email address of sender]:email' \ | '(--from -f)'{-f+,--from=}'[email address of sender]:email' \ | ||||
'(--test -n)'{-n,--test}'[print messages that would be sent]' \ | '(--test -n)'{-n,--test}'[print messages that would be sent]' \ | ||||
'(--mbox -m)'{-m+,--mbox=}'[write messages to mbox file instead of sending them]:file:_files' \ | '(--mbox -m)'{-m+,--mbox=}'[write messages to mbox file instead of sending them]:file:_files' \ | ||||
'*--reply-to=[email addresses replies should be sent to]:email' \ | '*--reply-to=[email addresses replies should be sent to]:email' \ | ||||
'(--subject -s)'{-s+,--subject=}'[subject of first message (intro or single patch)]:subject' \ | '(--subject -s)'{-s+,--subject=}'[subject of first message (intro or single patch)]:subject' \ | ||||
'--closesort[try to reorder closed revisions]' | '--closesort[try to reorder closed revisions]' | ||||
} | } | ||||
# Purge | # Purge | ||||
_hg_cmd_purge() { | _hg_cmd_purge() { | ||||
_arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | ||||
'(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ | '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ | ||||
'--all[purge ignored files too]' \ | '--all[purge ignored files too]' \ | ||||
'--dirs[purge empty directories]' \ | |||||
'--files[purge files]' \ | |||||
'(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ | '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ | ||||
'(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs (implies -p/--print)]' | '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs (implies -p/--print)]' | ||||
} | } | ||||
# Shelve | # Shelve | ||||
_hg_cmd_shelve() { | _hg_cmd_shelve() { | ||||
local context state state_descr line ret=1 | local context state state_descr line ret=1 | ||||
typeset -A opt_args | typeset -A opt_args |