Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN Apply Patch error

I am trying to apply patch but I get a blank error message (there is no text in it or anything). I have latest version of TortoiseSVN.

like image 850
Chebz Avatar asked Aug 13 '12 18:08

Chebz


People also ask

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 had the same issue, if you have created the patch from the revision, using "Show changes as unified diff", check the paths in your patch file, this one is correct:

Folder/FileName.cs

But this one (with absolute path) will cause issues:

c:/Folder/FileName.cs

Just convert absolute to relative paths.

like image 86
Ivan Jovović Avatar answered Oct 11 '22 13:10

Ivan Jovović