创建“补丁"在修订之间? [英] Create "patch" between revisions?

查看:30
本文介绍了创建“补丁"在修订之间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来 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?

推荐答案

这可以在 tortoise SVN 本身中实现.右键单击要创建补丁的分支(文件夹) >> Show Log >> 选择您需要为其创建补丁的所有修订版 >> 右键单击​​并选择 比较修订版 >> 这将显示更改的文件 >> 选择所有文件 >> 右键单击​​并选择 Export Revision To >> 在您的机器中提供任何路径 >> 文件将得到导出到相应的文件夹结构中.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆