如何在没有检出文件的情况下在 TortoiseSVN 中创建补丁?
我知道如果某些文件被签出(修改),那么我可以右键单击包含的文件夹,然后选择“创建补丁”。之后我将看到所有签出文件的列表。所以我可以将它们包含在补丁中。 但是,当没有检出文件时,也就是所有内容都已提交时,创建补丁窗口为空。所以问题是如何从签入的文件创建补丁?我想将此补丁发送给同事,以便他们可以在公司 svn 服务器上应用它们。
谢谢,
I know if some files are checked out (modified) then I could right click on containing folder, then select "create patch". After then I will see list of all checked out files. So I could include them in the patch.
But when no file is checked out, aka everything is committed, create patch window is empty. So the question is how can I create patch from checked-in files? I want to send this patch to colleagues so they can apply them on company svn server.
thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
统一的 diff 是一个补丁文件。
以文件夹结构保存更改的文件。
这将导出带有文件夹结构的修改后的文件。
A unified diff is a patch file.
To save the changed files with the folder structure.
This should export the modified files with the folder structure.
您所描述的是两个颠覆修订之间的
差异
。查看 SVN Book 上关于svn diff
看看如何做。What you're describing is a
diff
between two subversion revisions. Check out the SVN Book's section onsvn diff
to see how to do it.如果你只是想让同事获取最新的文件,他们应该使用 svn-checkout 从 svn 服务器获取。如果由于某种原因他们无法访问你的svn服务器,你也可以右键单击并选择svn-export;这为您提供了包含文件夹中的所有文件的集合,没有任何隐藏的 .svn 目录。
If you just want colleagues to get the most up-to-date files, they should get it from the svn server using svn-checkout. If for some reason they can't access your svn server, you can also right-click and choose svn-export; this gives you a set of all the files in the containing folder without any of the hidden .svn directories.