From: Anton Shestakov <av6@dwimlabs.net>
To: zsh-workers@zsh.org
Cc: Anton Shestakov <av6@dwimlabs.net>
Subject: [PATCH 3/5] _hg: add forget, phase, summary
Date: Mon, 6 Aug 2018 15:28:11 +0800 [thread overview]
Message-ID: <20180806072813.5051-4-av6@dwimlabs.net> (raw)
In-Reply-To: <20180806072813.5051-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 693e0c4bd..9ae49e3ad 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -552,6 +552,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]' \
@@ -666,6 +671,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]' \
@@ -776,6 +791,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
next prev parent reply other threads:[~2018-08-06 7:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 7:28 [PATCH 0/5] An update for Completion/Unix/Command/_hg Anton Shestakov
2018-08-06 7:28 ` [PATCH 1/5] _hg: rename _hg_style_opts to _hg_template_opts Anton Shestakov
2018-08-06 7:28 ` [PATCH 2/5] _hg: declare appropriate local parameters for ->string form Anton Shestakov
2018-08-06 9:20 ` Daniel Shahaf
2018-08-06 9:29 ` Peter Stephenson
2018-08-06 11:09 ` Anton Shestakov
2018-08-06 11:14 ` Peter Stephenson
2018-08-06 12:04 ` Daniel Shahaf
2018-08-06 15:31 ` Anton Shestakov
2018-08-06 15:38 ` Peter Stephenson
2018-08-07 6:15 ` Anton Shestakov
2018-08-06 12:06 ` Daniel Shahaf
2018-08-06 14:00 ` Bart Schaefer
2018-08-06 7:28 ` Anton Shestakov [this message]
2018-08-06 7:28 ` [PATCH 4/5] _hg: update all options Anton Shestakov
2018-08-06 7:28 ` [PATCH 5/5] _hg: drop -w, add -S to _arguments Anton Shestakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180806072813.5051-4-av6@dwimlabs.net \
--to=av6@dwimlabs.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).