Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a patch from a multiple revisions in TortoiseSVN using a commandline

I tried to create a patch by using TortoiseSVN -> Create Patch.. but it only allows me to retrieve one of the most recent revision.

I know that there is a way to create a patch from a set of revisions using a commandline. How do we do this?

like image 974
Best Avatar asked Dec 07 '11 13:12

Best


People also ask

How to create patch file in svn?

Creating a Patch File First you need to make and test your changes. Then instead of using TortoiseSVN → Commit... on the parent folder, you select TortoiseSVN → Create Patch... you can now select the files you want included in the patch, just as you would with a full commit.

How do I create a patch file in Windows?

Creating a patch using WinMergeUse File -> Open... to open the two versions for comparison. This will give you a nice view of what you have changed. Then do Tools -> Generate patch .... In the dialogue box, make sure you select Style: Unified in the Format box.


1 Answers

Show log, select the revisions (including one more previous revision), right-click, choose "show unified diff". Then save that diff.

Check which revisions are compared in the generated patch file.

like image 180
Stefan Avatar answered Oct 02 '22 13:10

Stefan