If you access/store your repositories on Samba shares, but development is done on Windows machines, it can be a headache trying to update your SVN checkout using the Windows cmd. Most of my updates (using Tortoise SVN) are done through the context menus in Windows because of this. I have grown tired of updating each checkout manually, so I wanted to make a batch file that would do it for me. Yay for being lazy, right?
Basically, we’re telling the local SVN client directly how to make the update request…
c: cd "C:\Program Files\TortoiseSVN\bin\" TortoiseProc.exe /command:update /path:"z:\client_site1\" /closeonend:2 TortoiseProc.exe /command:update /path:"z:\client_site2\" /closeonend:2 TortoiseProc.exe /command:update /path"z:\client_site3\" /closeonend:2 TortoiseProc.exe /command:update /path:"z:\client_site4\" /closeonend:2 TortoiseProc.exe /command:update /path:"z:\client_site5\" /closeonend:2 TortoiseProc.exe /command:update /path"m:\sandboxes\client_site1\" /closeonend:2 TortoiseProc.exe /command:update /path:"m:\sandboxes\client_site2\" /closeonend:2 exit
So, TortoiseProc.exe needs to run the update command, on the path specified. I don’t [usually] care much if files are updated or added, so I have set the closeonend flag to level 2, which will only close the SVN console window if there are no conflicts.
You’ll want to change the path, obviously, and if desired, the closeonend integer.
Leave comments. Cheers!
No related posts.