创建“补丁”在修订之间? [英] Create "patch" between revisions?
问题描述
似乎SVN的补丁功能并不是我想要的。我真正想要的是在修订版之间创建文件差异。因此,我将选择rev1和rev 2,最后得到一个包含所有在这些修订之间更改或添加的文件的文件夹。
It seems SVN's "patch" functionality is not exactly what I want. What I really want is to create a diff of files between revisions. So, I'd choose rev1 and rev 2 and end up with a folder containing all files that were changed or added between those revisions.
这可以用Tortoise SVN完成吗还是普通的svn?
Can this be done with Tortoise SVN or plain-old svn?
推荐答案
这可以在乌龟SVN本身中实现。右键单击要在其中创建补丁的分支(文件夹)>> 显示日志
>>选择您需要为其创建补丁的所有修订版本>>右单击并选择比较修订版本
>>这将显示已更改的文件>>选择所有文件>>右键单击并选择将修订版本导出到
>>在您的计算机中提供任何路径>>文件将在相应的文件夹结构中导出。
This can be achieved in tortoise SVN itself. Right click on the branch(folder) from where you want to create the patch >> Show Log
>> Select All the revisions for which you need to create the patch >> Right Click and select Compare revisions
>> This will show the changed files >> Select all the files >> Right click and select Export Revision To
>> Give any path in your machine >> The files will get exported in the respective folder structure.
或者,您也可以通过脚本来实现。为此,请参见以下链接:
Alternately you can achieve this via scripting. Refer the following link for that:
http: //www.electrictoolbox.com/subversion-export-changed-files-cli
这篇关于创建“补丁”在修订之间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!