Recursively CVS add files/directories and ignore existing CVS files.

Posted by meder on Stack Overflow See other posts from Stack Overflow or by meder
Published on 2009-09-22T19:37:11Z Indexed on 2010/03/29 1:23 UTC
Read the original article Hit count: 569

Filed under:
|
|
|
|

There's a similar post @ http://stackoverflow.com/questions/5071/how-to-add-cvs-directories-recursively

However, trying out some of the answers such as:

find . -type f -print0| xargs -0 cvs add

Gave:

cvs add: cannot open CVS/Entries for reading: No such file or directory cvs [add aborted]: no repository

And

find . \! -name 'CVS' -and \! -name 'Entries' -and \! -name 'Repository' -and \! -name 'Root'  -print0| xargs -0 cvs add

Gave:

cvs add: cannot add special file `.'; skipping

Does anyone have a more thorough solution to recursively adding new files to a CVS module? It would be great if I could alias it too in ~/.bashrc or something along those lines.

And yes, I do know that it is a bit dated but I'm forced to work with it for a certain project otherwise I'd use git/hg.

© Stack Overflow or respective owner

Related posts about cvs

Related posts about cvs-add