info-cvs
[Top][All Lists]
Advanced

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

Re: CVS diff and unknown files.


From: Todd Denniston
Subject: Re: CVS diff and unknown files.
Date: Mon, 24 Jan 2005 08:46:29 -0500

Sergei Organov wrote:
> 
> "Greg A. Woods" <address@hidden> writes:
> 
> > [ On , January 21, 2005 at 20:06:37 (+0300), address@hidden wrote: ]
> > > Subject: CVS diff and unknown files.
> > >
> > > Is there a way to include contents of "unknown" files into the 'cvs
> > > diff' output?
> > >
> > > I did try the -N switch but it doesn't seem to do the trick.
> >
> > You must "cvs add" the files before they can be seen as new.
> >
> > > I can't 'cvs add' the files as the repository is read-only for me
> > > (public read-only repository of an open-source project).
> >
> > Yes, you can, or at least you should be able to.
> >
> > "cvs add" does not (and must not :-) contact the server.
> 
> Well, it does :( :
> 
> $ echo dummy > dummy.txt
> $ cvs add -m" " dummy.txt
> cvs [server aborted]: "add" requires write access to the repository
Until the Fix that Greg described late last year is put in, you can (I
think) trick cvs at least for files.

***begin cvs_trick_add
#! /bin/bash
echo " /$1/0/dummy timestamp//" >> CVS/Entries
echo " cvs trick added $1 to the Entries file."
***end cvs_trick_add

cvs_trick_add dummy.txt
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]