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

RE: script to commit all unversioned/modified files in tree

From: Méresse Christophe <christophe.meresse_at_nagra.com>
Date: 2007-04-20 12:15:39 CEST

 

> -----Original Message-----
> From: Ruslan Sivak [mailto:rsivak@istandfor.com]
> Sent: vendredi, 20. avril 2007 02:05
> To: users@subversion.tigris.org
> Subject: script to commit all unversioned/modified files in tree
>
> I would like to write a script to commit all
> unversioned/modified files in a tree. We have a folder that
> we keep under svn that has other subfolders, and users can
> upload images there. I would like to set up nightly commits.
>
> I usually do it by hand using TortoiseSVN, but due to the
> size of the folder this is becoming a problem. I would also
> like to schedule it to run nightly. Is this possible? I
> think Tortoise does an add and a commit, and it looks like
> you need to specify the files for the add, so perhaps I would
> need to somehow feed the output of the svn status command to svn add?

If it is just for modified or unversioned files (no rename or delete), why not just do:

svn add --force <root_of_the_worskpace>
svn commit <root_of_the_worskpace> -m "a comment"

And you can put this in a crontab (unix/linux) or in the task scheduler (windows)

Regards
Christophe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 20 12:15:57 2007

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.