[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Autmated svn adds and commits

From: Garrett McGrath <gmcgrath_at_Princeton.EDU>
Date: 2006-11-07 15:37:28 CET

I'm presently attempting to write a simple script for placing all the config
files for a number of servers into a working copy area of an svn archive. I
would like to then automatically commit this data to the svn archive itself
to make sure we have all our config backed up in an easy to access location
(and can step thru them to find things we've changed / broken). Copying the
files and commiting them via cron job scripts is fairly trivial but it
appears your supposed to use an svn add command and svn remove command to
update the working copy's information.
 
Is there anyway to tell the working copy to just commit everything it has in
it's directory area? So if I add a file it's assumed to be new and of the
latest revision number and if a file is missing it's assumed to have been
removed?
 
Basically we know the files are going to be there unless we remove them from
the copy script and delete them from the working directory (you need root
access to get to this particular area) so we would like to setup svn (for
only this location) to just assume whatever is in the directory area is the
most up to date files and commit them.
 
 
Received on Tue Nov 7 15:37:52 2006

This is an archived mail posted to the Subversion Users mailing list.