Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create SVN patch after commit

Is it possible to retrospectively create a patch? The Tortoise SVN client we are using gives us the option to create a patch instead of (or during) a commit.

I would like to work on the fix using the trunk, check it in and have the build server run all its tests and metrics to confirm that the fix is acceptable. I would then like to be able to select a few revisions (if the first attempt at fixing it only got us part way there) and create a patch file from the files that have changed.

I can then take the patch and apply it to a few other branches. Is this possible?

like image 792
fluent Avatar asked Aug 22 '12 11:08

fluent


People also ask

How do I create a patch 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 diff two revisions in svn?

Display the differences between two paths. The ways you can use svn diff are: Use just svn diff'to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions.


1 Answers

Show Log, select the revisions, right-click, "show unified diff".

like image 116
Stefan Avatar answered Sep 20 '22 13:09

Stefan