Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

recursive add

0 views
Skip to first unread message

Wei Shi

unread,
Mar 1, 2005, 2:12:34 PM3/1/05
to info...@gnu.org
Hi,

Maybe this question has been brought up before. Is
there a recursive add command in CVS?

Thanks.

Wei


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


_______________________________________________
Info-cvs mailing list
Info...@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs

Spiro Trikaliotis

unread,
Mar 8, 2005, 7:04:42 AM3/8/05
to info...@gnu.org
Hello,

an answer to an older post:

* On Tue, Mar 01, 2005 at 10:59:32AM -0800 Wei Shi wrote:

> Maybe this question has been brought up before. Is
> there a recursive add command in CVS?

I'm not sure what you mean with "recursive add". Possibly, the following
commands might accomplish what you want to do:

$ cvs add `find . -type d`
$ cvs add `find . -type f`

(I expect you are running on a Unix box, or with Cygwin on Windows)

If there are too much files/directories, you might encounter problems
with the maximum line length of the shell interpreter. In this case,
replacing the second command with

$ find . -type f -exec cvs add \{\} \;

is a good replacement, neglecting the fact this this command will be
much slower for a remote repository.

HTH,
Spiro.

--
Spiro R. Trikaliotis http://cbm4win.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/

0 new messages