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.
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.
Having a look here, seems to be 3 possible root causes to this empty error svn patch issue:
the patch file is empty (or is invalid so the patch data appears to be empty)
the patch is not applied to the correct directory (auto-dir-search works on trunk now)
the patch file uses absolute paths instead of relative ones (trunk already strips such paths automatically)
first is probably not yours, most probably you ought to use relative path instead of absolute one
I get this message all the time. This is usually because I right click in windows explorer to get to the tortoise log. When you use "Show differences as unified diff" from this context, the generated patch will contain absolute locations relative to your computer, such as "c:\source\". If you try to apply this patch to another directory, this will fail.
The solution is to use the repository browser from tortoise, then use the "show log" menu from this context. The generated patches will have relative locations and you will be able to apply those patches anywhere the relative paths are matched.
I have also faced this problem and fixed it by changing the path in patch file. In my case i have to patch just one file. The problem occurred because in my case i created patch file from the review-board which creates files with full link path. INDEX /home/pushpendra/...something/file.c (revision some_rev)
So i replaced this line with:
INDEX file.c (revision some_rev) and then right click on this file and then apply patch.
I had the same issue.
Problem was:
- I checked out: some/crazy/path
- The patch was for: this/is/some/crazy/path
Somehow Tortoise could not apply the patch, so I checked it out on a higher level and it worked.
Patch can not be applied if version on which patch is created and the version on which patch is applied is different.
© 2022 - 2024 — McMap. All rights reserved.