Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/5] _hg: rename _hg_style_opts to _hg_template_opts
- X-seq: zsh-workers 43236
- From: Anton Shestakov <av6@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/5] _hg: rename _hg_style_opts to _hg_template_opts
- Date: Mon, 6 Aug 2018 15:28:09 +0800
- Cc: Anton Shestakov <av6@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dwimlabs.net; s=20171204; t=1533540506; bh=uKGy1Aj3N09t0qWhInbZynMogFJK+ji1uQvYCEvyzMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SPBQIpD1OH/hW7pyw/w9mhSvtYa76tz7B8l+HhKv94ezYNmKv4VB8JsWKRdmmAJLW ynWbCrN8kZWACvA3CbwPcfnwQwhW64TQFwelwYXjOXgWNdxeIcHCinrueuxUoDLENV gTMEVMKodiAfZzhga+Qy3B3oAuwPj4YQALwFKr8U=
- In-reply-to: <20180806072813.5051-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: <20180806072813.5051-1-av6@dwimlabs.net>
--style is a deprecated alias for --template, and doesn't show up in
help without --verbose.
Let's s/style/template/ this variable to be more consistent with
mercurial/cmdutil.py, which is helpful to look at in parallel next time
someone wants to update the completion rules.
---
Completion/Unix/Command/_hg | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index 8eaa457c8..50ab7132c 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -389,9 +389,9 @@ _hg_diff_opts=(
_hg_dryrun_opts=(
'(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]')
-_hg_style_opts=(
- '--style[display using template map file]:'
- '--template[display with template]:')
+_hg_template_opts=(
+ '--template[display with template]:template'
+)
_hg_commit_opts=(
'(-m --message -l --logfile --edit -e)'{-e,--edit}'[edit commit message]'
@@ -565,7 +565,7 @@ _hg_cmd_grep() {
}
_hg_cmd_heads() {
- _arguments -s : $_hg_global_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_template_opts \
'(--rev -r)'{-r+,--rev=}'[show only heads which are descendants of rev]:revision:_hg_tags'
}
@@ -592,7 +592,7 @@ _hg_cmd_import() {
}
_hg_cmd_incoming() {
- _arguments -s : $_hg_global_opts $_hg_remote_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_remote_opts $_hg_template_opts \
'(--no-merges -M)'{-M,--no-merges}'[do not show merge revisions]' \
'(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
'(--patch -p)'{-p,--patch}'[show patch]' \
@@ -616,7 +616,7 @@ _hg_cmd_locate() {
}
_hg_cmd_log() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_pat_opts $_hg_template_opts \
'(--follow --follow-first -f)'{-f,--follow}'[follow changeset or history]' \
'(-f --follow)--follow-first[only follow the first parent of merge changesets]' \
'(--copies -C)'{-C,--copies}'[show copied files]' \
@@ -644,7 +644,7 @@ _hg_cmd_merge() {
}
_hg_cmd_outgoing() {
- _arguments -s : $_hg_global_opts $_hg_remote_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_remote_opts $_hg_template_opts \
'(--no-merges -M)'{-M,--no-merges}'[do not show merge revisions]' \
'(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
'(--patch -p)'{-p,--patch}'[show patch]' \
@@ -654,7 +654,7 @@ _hg_cmd_outgoing() {
}
_hg_cmd_parents() {
- _arguments -s : $_hg_global_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_template_opts \
'(--rev -r)'{-r+,--rev=}'[show parents of the specified rev]:revision:_hg_tags' \
':last modified file:_hg_files'
}
@@ -785,7 +785,7 @@ _hg_cmd_tag() {
}
_hg_cmd_tip() {
- _arguments -s : $_hg_global_opts $_hg_style_opts \
+ _arguments -s : $_hg_global_opts $_hg_template_opts \
'(--patch -p)'{-p,--patch}'[show patch]'
}
--
2.11.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author