Does anybody know how I can automatically run svn update? If anybody has a script or something like that, could you show me an example?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
I'm using TortoiseSVN. On the production server I have a scheduled task that runs the following batch file.
Hopefully this saves someone else some time! |
|||||||||||||||||||||
|
|
I use SVN Notifier which sits in the system tray and notifies me every time the repository changes. And I can highly recommend it. It means you only update when there's something to update! Alternatively you can set up a scheduled task/cron job to run EDIT: OK, take a look at this Microsoft article on setting up a scheduled task. You want a batch file called svnUpdate.bat or something which looks like this:
Get the scheduled task to run this as often as you like (once an hour seems sensible) Make sure you have the command line version of svn installed (I use SlikSvn) and available on your PATH (in a command window type |
|||||||||||||||||||||
|
If you are using TortoiseSVN then the above batch script will suit fine. Otherwise you can just modify it to use whatever SVN client you are currently using. Just pop this in a .bat file and run it on demand. |
|||||||||||||||||||||
|
|
You can also download and use Commit-Monitor from http://code.google.com/p/commitmonitor/. It monitors SVN repositories for commits and notifies the user when it happens. It is in GNU GPL, ver 2. |
|||
|
|
|
Note: Once I know your operating system, I will be able to give you a more detailed answer. General Instructions
|
|||||||||||||
|