Is it possible to create a patch (diff files) for all files that were affected during a commit AFTER the commit? These files would have same version number and I need the diff of each file from their prior version.
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.
If you know commit number, then use
svn diff -c N path
Where N
is commit number and path
is path to your working copy.
Alternative, when using windows + tortoiseSVN :Go to your sourcecode directory, rightclick on the directory (to open the tortoise context-menu) and select "Show Log", select both revisions (ctrl-click) and then right-click and select "Show differences as unified diff" from the context menu. A window will pop up showing the differences, which you can then save as a patch.
Update: Holding Shift, when clicking on "show differences as unified diff" makes a dialog pop up where you can select the diff options (ignore eol changes, ignore whitespace changes, ignore all whitespaces). This is useful if e.g. the line-endings changed between versions (the entire file would otherwise show up as 'changed')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With