How do I create a patch from diff between revisions using TortoiseSVN?

自闭症网瘾萝莉.ら 提交于 2019-12-08 15:11:33

问题


I'm working on a project where Subversion is used to maintain version control. I use TortoiseSVN to access the project repository.

Some changes were made between two revisions on a project (let's call them rev1 and rev2), and I want to be able to apply these changes to a working copy somewhere that temporarily does not have access to the repository.

I right-clicked on a project folder, clicked 'SVN show log', selected the two revisions and selected 'Show changes as unified diff'.

This causes a window to be shown, displaying output that very much looks like a patch file that I could save. Unfortunately, I find that there is no option in the window that lets me save this as a patch file.

How can I create the patch file?


回答1:


The next version of TortoiseSVN (1.7.x) will have that save option. In the meantime, you can configure a plain text editor as your unified diff viewer:

Settings dialog->External Programs->Unified Diff Viewer

There you could, for example, specify notepad.exe as your diff viewer.




回答2:


One way to achieve you goal is to right click on the revision in the TortoiseSVN log and choose "Merge revision to...". Then you select you local working project and click OK.



来源:https://stackoverflow.com/questions/4009434/how-do-i-create-a-patch-from-diff-between-revisions-using-tortoisesvn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!