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

Re: _cvs malfunction



In article <20020715205720.GA11288@xxxxxxxx>,
  Clint Adams <clint@xxxxxxx> writes:

> Files with RCS kflags in CVS/Entries will not be excluded from
> completion for 'cvs add'.

It's my fault.

> This seems to fix it, but since it seems to have been purposeful, I am
> not committing.  Can someone explain what's supposed to be going on
> here?

Since `cvs add' accepts a file which is removed by `cvs rm' but not
committing yet.  It has `-' just before a revision in CVS/Entries.

So my fix is follows:

Index: Completion/Unix/Command/_cvs
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cvs,v
retrieving revision 1.15
diff -u -r1.15 _cvs
--- Completion/Unix/Command/_cvs	26 May 2002 19:22:43 -0000	1.15
+++ Completion/Unix/Command/_cvs	16 Jul 2002 04:33:46 -0000
@@ -963,7 +963,7 @@
   realdir=${(e)~linedir}
   [[ -f "$realdir"CVS/Entries ]] && {
     omitpats=(
-      ${${${${(M)${${(f)"$(<"$realdir"CVS/Entries)"}:#/*/-*}:#(D|)/*}#(D|)/}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH}
+      ${${${${(M)${${(f)"$(<"$realdir"CVS/Entries)"}:#/*/-*/*/*/*}:#(D|)/*}#(D|)/}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH}
       $_cvs_ignore_default
       ${=cvsignore}
     )
-- 
Tanaka Akira



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