Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _cvs malfunction
- X-seq: zsh-workers 17459
- From: Tanaka Akira <akr@xxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>
- Subject: Re: _cvs malfunction
- Date: 16 Jul 2002 13:39:21 +0900
- Cc: zsh-workers@xxxxxxxxxx, 152795-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20020715205720.GA11288@xxxxxxxx> (Clint Adams's message of "Mon, 15 Jul 2002 16:57:20 -0400")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020715205720.GA11288@xxxxxxxx>
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