[PLUG] CVS -- list all files not in the repository

Galen Seitz galens at seitzassoc.com
Fri Sep 17 09:56:02 UTC 2004


Randall Lucas <rlucas at tercent.com> wrote:

> >   cvs -n update | grep ^\? > newfiles.txt
> 
> Hi Galen et al.,
> 
> The problem is that cvs is not giving me the '? newfile.ext' line.  On
> other projects it has, so I hacked it together as above.
> 
> However, the fact that on this project (different cvs versions?
> different flags?) it doesn't bother to complain about unknown files
> means I want to adopt the canonical method, lest in future I forget
> about some file.
> 
> I could write a find -exec with some grepping and piping, but invoking
> cvs for every single file seems silly.
> 

cvs should show any new files, unless they are located under a new
directory.  If you have a new directory, you will need to 'cvs add'
the new directory before files in the new directory show up.

Another possibility is that cvs is intentionally ignoring your files.
https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_18.html#SEC178

If neither of these apply to your situation, please post an example.
It would also be useful to know what version of cvs you are using.


galen




More information about the PLUG mailing list