I have been spending more time in my sandbox at work lately and each time I need to go into the seperate parts of the system to update my sandbox form the repository trunk. Now that I have set up my ssh keys and no longer need to type in a pwd twenty times there was no reason to have to run svn update blah for the four parts of our system that I look at or use. Enter update_svn.sh and I can just ssh into the server, cd to my sandbox and run update_svn.sh and voila I get this
$ ./update_svn.sh updating blah --------------- Fetching external item into ‘blah/blah’ Fetching external item into ‘blah/lib/ajax’ External at revision 5734. Fetching external item into ‘blah/lib/sarissa’ External at revision 5734. At revision 5734. Fetching external item into blah/blah/lib/custom’ External at revision 5734. At revision 5734. --------------- blah updated --------------- updating foo --------------- U foo/bin/foo.pl Updated to revision 5734. --------------- foo updated --------------- updating bar --------------- Fetching external item into ‘bar/lib/ajax’ External at revision 5734. Fetching external item into ‘bar/lib/sarissa’ External at revision 5734. At revision 5734. --------------- bar updated --------------- updating baz --------------- At revision 5734. --------------- baz updated --------------- sandbox repositiory updated
Of couse the names and paths are changed for obvious reasons. But it sure makes it convienient to svn update now. If I really wanted to track how often I was doing it I caould also redirect output to a log file and append a date time stamp at the end where it says sandbox repository updated: YYYY/MM/DD HH:MM.