Digbyswift is based in Leeds, West Yorkshire offering web and digital solutions. With over a decade of experience in corporate and agency web development, Digbyswift can meet and support your requirements, whether it be MVC or web forms development, Umbraco, bespoke CMS build and maintenance, ecommerce, SEO and Google analytics or even client training. Read more ...

Creating a file patch with in TortoiseSVN

By Digbyswift at May 26, 2011 09:47

I wanted to create a patch containing all the updated files but with the folder structure of my website. This way I could simply FTP the patch up to my website without having to upload any additional files.

I’d love to know if there was a better or simpler method but this is what I did:

  1. Right-click on the root of your working copy
  2. Select ‘TortoiseSVN > Show Log’ . This will open up a window displaying the committed log entries for the repository
  3. Right-click the top entry
  4. Select ‘Compare with previous revision’. This will open a window displaying a list of files that have changed between the latest and the previous commits. You can change the list by changing the revision numbers at the top right of the window.

compare-with-previous-version

  1. Left-click into the list of files and click Ctrl+A to highlight the entire list
  2. Right-click and select ‘Export selection to ...’

export-selection

  1. Choose a location to save the files to and click OK.


This will then export the highlighted files maintaining the folder structure of your repository.

This saves time with my deploys but also has the benefit of allowing me to pass patches to clients if I’m working remotely without access to SVN.