September 21, 2004
Cronable svn updates

Running "svn update" is really simple and speedy, but I like having a nightly cronjob updating my local copy of the code, so I wrote a script that does just that and sends me a small, quick summary of what it did, paying special attention to conflicts.

I really don't care what files have changed, were added, etc, but I do care which files have merge conflicts.. so that's what this script does.. output looks something like:

Tue Sep 21 15:40:50 2004 Updated /home/ktrapszo/test

1 Conflict Detected!

Conflicted files:
/home/ktrapszo/test/test.java

2 files added
13 files updated
0 files deleted
0 files merged

Finished update in 13 seconds

That's really all I care to see, if I want specific updates on specific files I can always check the daily changelog email.

So for those who work like me and like an automated update that only sends a small summary of important info, the script is here.

Posted September 21, 2004 04:19 PM in development tools
TrackBack URL for this entry: http://www.unix-girl.com/mt/mt-tb.cgi/1342
Comments
On September 22, 2004 09:32 AM Jacques added:

Hi Kasia,

Script looks interesting. I'm busy investigation migrating from CVS over to SVN in the near future, and this looks like something I'm going to be using. :)

#
Trackbacks
Jacques Marneweck's Blog:Cronable svn updates ala Kasia
Taking a look @ Kasia's blog, she has written a script which runs as part of one of her nightly cronjobs for updating her local copy of code from a subversion repository. Running "svn update" is really simple and speedy,...
(read more)
September 22, 2004 09:34 AM