Re: Adding a file to CVS?



Le Fri, Jul 05, 2002, à 12:23:34AM -0500, Lars Clausen a écrit:
Yes, there is a magical incantation, goes by the name of cvs add.
Unfortunately, you can't do it without write access.  Hmmm... you'll just
have to send us the new file along with the patch, I think.

You can run 'cvs add' on a read-only repository. It will include the file in
patches if you use "cvs -z3 diff -rN ".

OK thanks (and Lars too!) It's the second answer I was looking
for --- couldn't find it in the docs. Will send the patch along
later today.

OK probably am missing something very obvious here, but when I
use the -N option, all it does is add the line:

? app/authors.h

to the top of the patch file, which is obviously not what I
want, since I need the content of the file included too!

BTW, doing cvs add app/authors.h produces the following:

cvs [server aborted]: "add" requires write access to the
repository

Shall I just send the extra file separately with the patch, as
you suggested, Lars? It's probably easiest judging by the
above.

Regards,
Andrew.

-- 
Andrew Ferrier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]