[Bug 5618] New: zsh completion: for 'import' command the flag '--partial' is not in list of possible completions

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Jul 12 09:05:55 UTC 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5618

            Bug ID: 5618
           Summary: zsh completion: for 'import' command the flag
                    '--partial' is not in list of possible completions
           Product: Mercurial
           Version: 4.1.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mtietze at gmx.com
                CC: mercurial-devel at mercurial-scm.org

Created attachment 1968
  --> https://bz.mercurial-scm.org/attachment.cgi?id=1968&action=edit
Patch adding '--partial' flag to suggested completions for 'import' command.

Hi, 

Summary:
I use the zsh completion provided in contrib/ (revision
https://www.mercurial-scm.org/repo/hg/rev/062c1bde1781).
A minor issue I found is that when using the 'import' command the flag
'--partial' (introduced in Mercurial 3.1, 2014-08-01) is not offered as
completion option.
I suggest to add it to the list of completions, see attached patch.

Current behavior:
$ hg im -<TAB>
...
--noninteractive  -- do not prompt, assume yes for any required answers
--profile         -- profile
--quiet           -- suppress output
...

Expected behavior:
$ hg im -<TAB>
...
--noninteractive  -y  -- do not prompt, assume yes for any required answers
--partial             -- commit even if some hunks fail
--profile             -- profile
--quiet           -q  -- suppress output
...

Discussion:
The addition of this completion is not backward compatible in the sense that it
will suggest a completion which will fail when used with a version of Mercurial
before 3.1. But I still suggest to include it for the reason that a new user of
Mercurial is more likely to begin working with a recent version of Mercurial
and would benefit most from the completion option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list