Working with Patches in SmartSVN

SmartSVN supports the creation and usage of ‘patches’ – text files containing the differences between two files. Patches specify which lines have been removed, added and changed, and are particularly useful when you don’t have write access to a repository. In these instances, you can create a patch file showing the changes between a file as it exists in the repository, and the version in your working copy. Then, you can create a ticket and attach your patch file, for someone with repository write access to review and commit the accepted changes to the repository.

Patches are created by comparing two revisions of your project (or by comparing your local changes to the version in the repository) and generating a local patch file.

Create a Patch in SmartSVN

To create a patch file in SmartSVN:

1) Open the ‘Query’ menu and select ‘Create Patch…’

2) In the subsequent dialog, select the ‘Choose’ button.

3) In the ‘Save File’ dialog, choose the file path where your patch will be stored, and enter a name for your path.

4) Select ‘OK’ to return to the ‘Create Patch’ dialog. Select ‘Create Patch.’

5) SmartSVN will confirm the creation of your patch, and remind you where this patch has been stored.

You have now successfully created your first patch in SmartSVN!

Create a Patch Between URLs

1) Open the ‘Query’ menu and select ‘Create Patch Between URLs…’

2) In the ‘Create a Patch between URLs’ dialog, specify the ‘from’ path and the ‘to’ path, and select the revisions you wish to compare and create a patch for. Alternatively, you can opt to compare the HEAD revisions of two paths.

3) Finally, enter the location where the patch should be saved. Once you are happy with the information you have entered, click ‘OK’ to go ahead and create the patch.

Need more help with your SmartSVN installation? SmartSVN Professional includes one year of email support. Find out more at http://www.smartsvn.com/buy

0 Responses to “Working with Patches in SmartSVN”


  • No Comments

Leave a Reply