3

I'm using TortoiseSVN 1.7 and want to create patch file between two revisions.

I've searched, but these threads How do I create a patch from diff between revisions using TortoiseSVN? Creating a patch between two revisions do not work for me, as Show changes as unified diff generates very simple file (not a patch file). Something like

Index: myfile.txt

===================================================================

I read in Viewing Differences that

If you want to see the changes made to all files in a particular revision in one view, you can use Unified-Diff output (GNU patch format). This shows only the differences with a few lines of context. It is harder to read than a visual file compare, but will show all the changes together. From the Revision Log dialog select the revision of interest, then select Show Differences as Unified-Diff from the context menu.

I want to create a single patch file (or many patch files according to modified files) that contains useful diff information (like the menu context TortoiseSVN -> Create patch ...)

Community
  • 1
  • 1
onmyway133
  • 45,645
  • 31
  • 257
  • 263

1 Answers1

4

If you use the "Show changes as unified diff" command, then TortoiseSVN shows all changes of the selected revision in a single file.

Now simply use the "File / Save as" command to save the changes to a ".patch" or ".diff" file and there you have your patch file.

M4N
  • 94,805
  • 45
  • 217
  • 260