zsh-workers
 help / color / Atom feed
* subversion 1.13 breaks argument completion in zsh 5.7.1
@ 2020-02-09 16:27 Andras Korn
  2020-02-10  2:59 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Andras Korn @ 2020-02-09 16:27 UTC (permalink / raw)
  To: zsh-workers

Hi,

I'm not subscribed; please Cc me if necessary.

zsh apparently generates completion candidates for "svn" based on the output
of "svn --help", which changed between subversion 1.10 and subversion 1.13.

This breaks argument completion in zsh 5.7.1.

svn --help 1.10 output:

usage: svn <subcommand> [options] [args]
Subversion command-line client.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules,
     'svn --version --verbose' to see dependency versions as well,
     'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   auth
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   patch
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   relocate
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)
   upgrade
   x-shelve (shelve)
   x-unshelve (unshelve)
   x-shelves (shelves)

Subversion is a tool for version control.
For additional information, see http://subversion.apache.org/

completion candidates:

% svn
completing svn command
add         blame       changelist  cleanup     copy        diff        help        info        lock        merge       mkdir       patch       propedit    proplist    relocate    resolved    status      unlock      upgrade     x-shelves                                                     
auth        cat         checkout    commit      delete      export      import      list        log         mergeinfo   move        propdel     propget     propset     resolve     revert      switch      update      x-shelve    x-unshelve                                                    

option candidates:
% svn up --
completing option
--accept                                                                                     -- automatic conflict resolution action                                                                                                                                                                       
--changelist                  --cl                                                           -- change list                                                                                                                                                                                                
--config-dir                                                                                 -- config dir                                                                                                                                                                                                 
--config-option               --editor-cmd  --diff3-cmd  --password  --username  --revision  -- arg                                                                                                                                                                                                        
--depth                                                                                      -- operation depth (how far to recurse)                                                                                                                                                                       
--set-depth                                                                                  -- make working copy deeper or shallower                                                                                                                                                                      
--trust-server-cert-failures                                                                 -- failures                                                                                                                                                                                                   
--force                          --force-interactive              --ignore-externals               --no-auth-cache                  --non-interactive                --non-recursive                  --parents                        --quiet                          --trust-server-cert            

svn --help 1.13 output:

usage: svn <subcommand> [options] [args]
Subversion command-line client.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules,
     'svn --version --verbose' to see dependency versions as well,
     'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   auth
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   patch
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   relocate
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)
   upgrade

(Use '-v' to show experimental subcommands.)

Subversion is a tool for version control.
For additional information, see http://subversion.apache.org/

completion candidates:

% svn
Completing svn command
add           blame         changelist    cleanup       copy          diff          export        import        list          log           mergeinfo     move          propdel       propget       propset       resolve       revert        switch        unlock        upgrade                   
auth          cat           checkout      commit        delete        experimental  help          info          lock          merge         mkdir         patch         propedit      proplist      relocate      resolved      status        to            update        \(Use                     

("experimental" and "\(Use" are bogus)

option candidates:

% svn up --
Completing option
--accept                               -- automatic conflict resolution action                                                                                                                                                                                                                             
--changelist  --cl                     -- change list                                                                                                                                                                                                                                                      
--depth                                -- operation depth (how far to recurse)                                                                                                                                                                                                                             
--editor-cmd  --diff3-cmd  --revision  -- arg                                                                                                                                                                                                                                                              
--set-depth                            -- make working copy deeper or shallower                                                                                                                                                                                                                            
--adds-as-modification                           --force                                          --ignore-externals                               --non-recursive                                  --parents                                        --quiet                                        

(e.g. --username and --no-auth-cache are missing)

András

-- 
               I, for one, am a great fan of Roman numeral puns.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: subversion 1.13 breaks argument completion in zsh 5.7.1
  2020-02-09 16:27 subversion 1.13 breaks argument completion in zsh 5.7.1 Andras Korn
@ 2020-02-10  2:59 ` Daniel Shahaf
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2020-02-10  2:59 UTC (permalink / raw)
  To: Andras Korn; +Cc: zsh-workers

Andras Korn wrote on Sun, 09 Feb 2020 17:27 +0100:
> zsh apparently generates completion candidates for "svn" based on the output
> of "svn --help", which changed between subversion 1.10 and subversion 1.13.
> 
> This breaks argument completion in zsh 5.7.1.

It should work correctly in the latest test release:

% git log --grep=44726 --oneline
1156b2aa4 44812: _subversion: Fix syntax error in 44726/0001
2829e32e3 44726/0002: _subversion: Update --show-item= completion to 1.12.0.
770dca2c5 44726/0001: _subversion: Use 'svn help -v' to show global options, experimental options, and experimental subcommands (upstream issue SVN-4828, to be released in Subversion 1.13.0)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-09 16:27 subversion 1.13 breaks argument completion in zsh 5.7.1 Andras Korn
2020-02-10  2:59 ` Daniel Shahaf

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git