Export new and changed files only using TortoiseSVN

I was forced to do some work under Windows these days, and when it came time to deploy the files I changed to the FTP server, I had to figure out how to use TortoiseSVN in order to only export the files that have been created or updated since the last deployment. As it turns out, it’s pretty easy:

  1. First, bring up the TortoiseSVN menu by right clicking on your working copy.
  2. From the menu, choose “Show Log”.
  3. Holding down the CTRL key, select the two revisions you want to compare (like this).
  4. Right click on one of the two revisions and select theĀ Compare revisions option.
  5. In the file list that appears, select all the entries (CTRL+A), right click on them and select the Export selection to… option. The files will be exported with the right directory structure, so all you have to do is upload them to the server.

Unfortunately, this method only works for new files or files that have been changed. The files that have been removed will have to be manually deleted from the server too.

There are, of course, tons of better tools to deploy files to FTP servers that can also handle removed files (Springloops is my current favorite), but this is quick and easy way to do it when you don’t have a better solution on hand.

Comments

Leave a Reply