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

Re: Automatic "svn add" and "svn delete" ?

From: Taco Walstra <walstra_at_science.uva.nl>
Date: 2004-09-10 14:50:32 CEST

On Friday 10 September 2004 14:42, wek@kuhnle.com wrote:
> Hello !
>
> I want to use Subversion for tracking the state of a complete Directory
> tree (not related to source code, but just complete data and configuration
> of a complex application)
>
> Application programs and users will make additions and deletions of files
> in the tree, and every evening there shall be an automatic commit of all
> changes. (started by a scheduler).
> So I will be able to restore the complete state of the application for
> every date.
>
> My problem:
> After the first "import" Subversion does not automaticly(!) recognize new
> files or deletion of files for versioning.
>
> My question:
> Does there exist an automatic add/delete -Feature for SubVersion that
> automatically adds and deletes files in the repository according to the
> actual state of the working copy ?
It's not something people like to have with a version system (like svn adding
automatically all object files of a c project after the first compile and
commit). I would in this case write a bash script and run this as cron job.
You can easily run a svn status of this svn repos, all files which are not
there will have '?' in the status, get these files by using awk or perl
scripting and add them to the repository.
take care that the database doesn't grow to immense sizes.
taco

> If not :
> Does there exist an other recommended solution for this problem ?
>
> Or do I have to write my own program to compare the list of files in the
> repository and the files in the working copy and do the necessary additions
> and deletions by calls to svn ?`
>
> Thanks in advance for any answer/hint.
>
> Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 10 14:51:00 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.