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/test1 Conflict Detected!
Conflicted files:
/home/ktrapszo/test/test.java2 files added
13 files updated
0 files deleted
0 files mergedFinished 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.
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. :)
Posted by: Jacques | September 22, 2004 09:32 AM