Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _subversion and PATH

VL> A "svn add [TAB]" currently completes on directories only (unless
VL> there is no match, in which case it completes on files).

VL> By default, it should complete on both directories and files that
VL> haven't been added yet (like the completion for "cvs add").

Partially addressed by patch below.

VL> A "svn log [TAB]" currently completes on URLs. It should complete
VL> on URLs, directories and files that have already been added to the
VL> repository.

The files part is broken, and still there's no effort to check what's in
the repository.

VL> Some other completions for subcommands should be improved too.


Index: Completion/Unix/Command/_subversion
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.1
diff -u -r1.1 _subversion
--- Completion/Unix/Command/_subversion	7 Jul 2003 03:23:15 -0000	1.1
+++ Completion/Unix/Command/_subversion	20 Jul 2003 15:55:56 -0000
@@ -49,7 +49,7 @@
   [[ "$_svn_subcmd_usage" == *URL* ]] && _svn_subcmds=($_svn_subcmds ":url:_urls")
-  [[ "$_svn_subcmd_usage" == *PATH* ]] && _svn_subcmds=($_svn_subcmds "*:path:_files -/")
+  [[ "$_svn_subcmd_usage" == *PATH* ]] && _svn_subcmds=($_svn_subcmds "*:path:_files")
     _arguments \
     	"$_svn_subcmds[@]" && ret=0

Messages sorted by: Reverse Date, Date, Thread, Author