Alex Rivera | Logout

How do I create a patch from diff between revisions using TortoiseSVN?

Asked 2010-10-24T17:26:21.910
12

I'm working on a project where Subversion is used to maintain version control. I use TortoiseSVN to access the project repository.

Some changes were made between two revisions on a project (let's call them rev1 and rev2), and I want to be able to apply these changes to a working copy somewhere that temporarily does not have access to the repository.

I right-clicked on a project folder, clicked 'SVN show log', selected the two revisions and selected 'Show changes as unified diff'.

This causes a window to be shown, displaying output that very much looks like a patch file that I could save. Unfortunately, I find that there is no option in the window that lets me save this as a patch file.

How can I create the patch file?

Edit
Report

1 Answer

7

The next version of TortoiseSVN (1.7.x) will have that save option. In the meantime, you can configure a plain text editor as your unified diff viewer:

Settings dialog->External Programs->Unified Diff Viewer

There you could, for example, specify notepad.exe as your diff viewer.

answered 2010-10-25T14:56:58.510

Your Answer