This is an improvement upon my earlier post on how to keep SVN checkouts automatically up to date.
DD32 used his awesome Googling skills to find this page in the TortoiseSVN docs that talks about automation. Turns out you can launch TortoiseSVN via the command line, have it update the folder(s), and then close when done. So here’s an updated guide.
These instructions are for Vista, but they are likely similar for XP.
- If you don’t already have TortoiseSVN installed, download and install it.
- If you don’t already have a copy of WordPress checked out to a folder, do it. WordPress’ in-development SVN URL is
http://svn.automattic.com/wordpress/trunk/
- Start -> Control Panel -> Administrative Tools -> Task Scheduler
- On the right, click on “Create Task” (not the basic one)
- Fill out as follows. Paths will likely be different! Click for bigger versions.
- General: Click on “Change User or Group”, type “System” into the box, and then press “Check Names”. This will make it run in the background.
- Triggers: I opted to update every 15 minutes. Change to your personal preference.
-
Actions: Here’s the arguments (change the path):
/command:update /path:"D:\Webserver\htdocs\wordpress-trunk\" /closeonend:1
- Conditions: When do you want it to run? I want it to run even when I’m on my PC.
- Settings
Done!
To test it to make sure it’s working properly, delete a few non-custom files from your SVN’ed folder. wp-trackback.php
, xmlrpc.php
, etc. are good test files. Then click on “Task Scheduler Library” in Task Scheduler (it’s on the left), click once on your new task, and then click “Run” on the right-hand side. If it’s working properly, the files your deleted will be restored.
Pingback: Automatic Updates or Notifications for SVN/Git/etc
Pingback: [Guide][How To] - Multiple SVN Updates