views:

22

answers:

1

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.

Does anyone have any other suggestions as to how I can create the patch file?

A: 

The next version of TSVN will have that save option. In the mean time, you can configure a plain text editor as your unified diff viewer:

Settings dialog->External Programs->Unified Diff Viewer

There you could specify e.g., notepad.exe as your diff viewer.

Stefan
My patch has binary files, but the text file wasn't displaying these. I assume that they won't be saved in the patch?
Shoko
the unified diff format can't handle binary content. That's why those are not included in a patch file (which is in unified diff format).
Stefan