Overview #

This article will walk you through creating a patch using TortoiseSVN.

What You Will Need Before Starting #

Top ↑

Creating A Patch With TortoiseSVN #

Top ↑

1. Editing/Saving A File #

Open the folder, and find the file you need to change. Open it in your favorite plain-text editor. Note: Do not use a rich-text editor such as Word or OpenOffice to edit the files.

Make the changes necessary, then save the file.

You will notice that the green checkmark has changed to a red exclamation point. That means the file has been changed, and is no longer in sync with the repo version.

TortoiseSVN Changed File Indicator

Top ↑

2. Creating/Naming A Patch #

Next you will create the patch file. Right-click in the root directory of your SVN checkout folder, and select SVN Create Patch.

TortoiseSVN Create Patch Context Menu

A pop-up window will show you the list of changed files. Make sure the file(s) you want to include in the patch are checked, then click OK.

Check the box for all file(s) that should be included in the patch

You will be prompted to save the file. Create a folder called patches, then type in the filename you want to save it as. Use the format ticket#.patch.

The TortoiseUDiff editor will open and show you the patch file you just created.

TortoiseUDiff Editor

Top ↑

Next Steps #