Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH v2 3/5] _hg: add forget, phase, summary
- X-seq: zsh-workers 43250
- From: Anton Shestakov <av6@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH v2 3/5] _hg: add forget, phase, summary
- Date: Tue, 7 Aug 2018 14:11:59 +0800
- Cc: Anton Shestakov <av6@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dwimlabs.net; s=20171204; t=1533622379; bh=/fBKbSu7kMWQfDcjNQYgjd9ApAVMW/p0pHHH9TUAl44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CUkEPLSym7E1ar+X2Gw5bQ2tjTq2e6ujKGubCLTOQfCIvhISpqhsvc0zGg84zlzCw 8XGLn8i+DpK0q9LmNmzGWoq/WJAXtxOLfKfjKo8jdPAS4zlfJrTk6W+FsHW6V7+1F2 am1sCxjUaQHb5B7SnFd9X1r4ouBr9IU/X/ZQCEzA=
- In-reply-to: <20180807061201.31646-1-av6@dwimlabs.net>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180807061201.31646-1-av6@dwimlabs.net>
---
Completion/Unix/Command/_hg | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index 0526fdd81..6a0cf50bf 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -554,6 +554,11 @@ _hg_cmd_export() {
'*:revision:_hg_tags'
}
+_hg_cmd_forget() {
+ _arguments -s : $_hg_global_opts $_hg_pat_opts \
+ '*:file:_hg_files'
+}
+
_hg_cmd_grep() {
_arguments -s : $_hg_global_opts $_hg_pat_opts \
'(--print0 -0)'{-0,--print0}'[end filenames with NUL]' \
@@ -668,6 +673,16 @@ _hg_cmd_paths() {
':path:_hg_paths'
}
+_hg_cmd_phase() {
+ _arguments -s : $_hg_global_opts \
+ '(--public -p --draft -d --secret -s)'{-p,--public}'[set changeset phase to public]' \
+ '(--public -p --draft -d --secret -s)'{-d,--draft}'[set changeset phase to draft]' \
+ '(--public -p --draft -d --secret -s)'{-s,--secret}'[set changeset phase to secret]' \
+ '(--force -f)'{-f,--force}'[allow to move boundary backward]' \
+ '*'{-r+,--rev=}'[target revision]:revision:_hg_tags' \
+ '*:revision:_hg_tags'
+}
+
_hg_cmd_pull() {
_arguments -s : $_hg_global_opts $_hg_remote_opts \
'(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
@@ -782,6 +797,11 @@ _hg_cmd_status() {
'*:files:_files'
}
+_hg_cmd_summary() {
+ _arguments -s : $_hg_global_opts \
+ '--remote[check for push and pull]'
+}
+
_hg_cmd_tag() {
_arguments -s : $_hg_global_opts \
'(--local -l)'{-l,--local}'[make the tag local]' \
--
2.11.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author