Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN : Good 'patch file' viewer?

Tags:

The default patch file viewer is messy (ie. no side by side diff view etc). I tried setting the path of beyondCompare exe in "Settings->Unified Diff Viewer->custom", but beyond compare also behaves same as default diff tool. Is there a way to atleast allow side by side diff in patch files ? If so, what is the method ? My aim is to allow emailing of changes so that they can be reviewed before I commit them :)

Mishal

like image 930
mishal153 Avatar asked May 24 '10 05:05

mishal153


People also ask

How do I view a patch file?

If you cannot open your PATCH file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a PATCH file directly in the browser: Just drag the file onto this browser window and drop it.

How do I run a patch file?

In the Patch section, click the executable link and then click Save on the File Download screen to save the executable to your server's hard drive. When the download completes, double-click the executable to launch it on the server. Click Finish once you are prompted that the update completed successfully.

How does SVN patch work?

A patch is a file that show the differences between two revisions or between your local repository and the last revision your repository is pointing. In order to apply the patch successfully, you must run the command from the same path where the patch was created.


1 Answers

I've never found any, but the solution that I usually use is to simply apply the patch file to a pristine checkout of the tree, and then do a "regular" diff (my preferred tool is diffuse) to review the changes in context.

The problem with "raw" patch files is that they only provide a few lines of context before and after the change, which often isn't enough.

If you don't like the patch, simply revert the changes and don't commit!

like image 176
Dean Harding Avatar answered Oct 04 '22 05:10

Dean Harding