info-cvs
[Top][All Lists]
Advanced

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

Re: Convenient way to commit?


From: Spiro Trikaliotis
Subject: Re: Convenient way to commit?
Date: Wed, 21 Mar 2007 10:37:33 +0100
User-agent: Mutt/1.5.9i

Hello,

* On Wed, Mar 21, 2007 at 02:00:03AM -0700 Hans Schwaebli wrote:

> I want to commit all files folders and subfolders of a certain folder,
> may or may they not already have been added to CVS.

This might be a bad idea in many cases. Compare your question about
ignoring files which once were in CVS.

I think it is much better to decide yourself, by hand, what you want to
add/delete, and what not.

 
> I want to automate this. So I need a foolproof way. But there are no
> convenience commands of CVS which allow me this. Or is there a way?

You can use:

1. Use the output of "cvs -nq up" to find the directories which have been
   added.
   You can do this via a shell skript.

2. Now, add all directories which have been added with "cvs add". xargs
   might help you here.

3. Use the output of "cvs -nq up" to find the files which have been
   added, and find the files which have been removed.
   You can do this via a shell skript.

4. Now, add all files which have been added with "cvs add", and remove
   all files which have been removed with "cvs remove". Again, xargs
   will help you.

5. Check if everything is right "cvs -nq up", and commit it with "cvs
   commit".


I once have done it myself, and thus, I know it works this way.

 
> Why not just writing cvs -f commit foldername? If a resource is not
> added, the command would add it automatically and if a resource is
> deleted by the commit, it is deleted automatically.

Because you might end up with files in CVS you do not want to have
there. Compare your other post, again.

> Such things are badly needed for stuff like Continuous Builds and
> Nightly Builds.

Could you please tell me why you would need this for these? I do not see
any reason.

Best regards,
   Spiro.

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




reply via email to

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