Patchwork zsh_completion: add '--partial' flag to completions for 'import' (issue5618)

login
register
mail settings
Submitter Martin Tietze
Date July 12, 2017, 3:45 p.m.
Message ID <trinity-6d334253-9adb-459e-918d-8ce95774b2ce-1499874345891@3capp-mailcom-bs13>
Download mbox | patch
Permalink /patch/22288/
State Accepted
Headers show

Comments

Martin Tietze - July 12, 2017, 3:45 p.m.
# HG changeset patch
# User Martin Tietze <mtietze@gmx.com>
# Date 1499847062 -7200
#      Wed Jul 12 10:11:02 2017 +0200
# Node ID 879903976b5ca11dc2cc0ec6c4f2d8bc2576fc5e
# Parent  062c1bde178118b7c4d5abb1ead16ac8ad494280
zsh_completion: add '--partial' flag to completions for 'import' (issue5618)

When using the 'import' command running ZSH together with its
Mercurial-specific completions the flag '--partial' (introduced in Mercurial
3.1, 2014-08-01) is not offered as completion option.

This patch adds it to the list of completions for the 'import' command.
Yuya Nishihara - July 14, 2017, 1:58 p.m.
On Wed, 12 Jul 2017 17:45:45 +0200, Martin Tietze wrote:
> # HG changeset patch
> # User Martin Tietze <mtietze@gmx.com>
> # Date 1499847062 -7200
> #      Wed Jul 12 10:11:02 2017 +0200
> # Node ID 879903976b5ca11dc2cc0ec6c4f2d8bc2576fc5e
> # Parent  062c1bde178118b7c4d5abb1ead16ac8ad494280
> zsh_completion: add '--partial' flag to completions for 'import' (issue5618)

Looks good, queued, thanks.

Patch

diff -r 062c1bde1781 -r 879903976b5c contrib/zsh_completion
--- a/contrib/zsh_completion    Sun Jul 09 16:38:04 2017 -0400
+++ b/contrib/zsh_completion    Wed Jul 12 10:11:02 2017 +0200
@@ -672,6 +672,7 @@ 
   '(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \
   '--bypass[apply patch without touching the working directory]' \
   '--no-commit[do not commit, just update the working directory]' \
+  '--partial[commit even if some hunks fail]' \
   '--exact[apply patch to the nodes from which it was generated]' \
   '--import-branch[use any branch information in patch (implied by --exact)]' \
   '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \