zsh-workers
 help / color / mirror / code / 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

end of thread, other threads:[~2020-02-10  3:00 UTC | newest]

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

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).