« Book reviews | Main | Yay! »

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.

TrackBack

Listed below are links to weblogs that reference Cronable svn updates:

» Cronable svn updates ala Kasia from Jacques Marneweck's Blog
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]

Comments

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. :)