windows 如何在没有文件检出的情况下在 TortoiseSVN 中创建补丁?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3023882/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create a patch in TortoiseSVN while no file is checked out?
提问by Afshar Mohebbi
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.
我知道如果某些文件被检出(修改),那么我可以右键单击包含文件夹,然后选择“创建补丁”。之后我将看到所有签出文件的列表。所以我可以将它们包含在补丁中。但是当没有文件被检出时,也就是一切都被提交了,创建补丁窗口是空的。所以问题是如何从签入的文件创建补丁?我想将此补丁发送给同事,以便他们可以在公司 svn 服务器上应用它们。
thanks,
谢谢,
回答by Sharjeel Aziz
A unified diff is a patch file.
统一的差异是一个补丁文件。
- Using TortoiseSVN, right-click on your working folder and select “Show Log”
- Select the two revisions (Ctrl-Click)
- Right-click on either of the highlighted revisions and select “Show differences as unified diff”
- 使用 TortoiseSVN,右键单击您的工作文件夹并选择“显示日志”
- 选择两个修订版本(Ctrl-单击)
- 右键单击任一突出显示的修订,然后选择“将差异显示为统一差异”
To save the changed files with the folder structure.
使用文件夹结构保存更改的文件。
- Using TortoiseSVN, right-click on your working folder and select “Show Log”
- Select the two revisions (Ctrl-Click)
- Select "Compare revisions."This would list the modified files between the revisions in a dialog box
- Select all the files in the dialog that comes up. Right-click on the selected files and select "Export selection to…"
- 使用 TortoiseSVN,右键单击您的工作文件夹并选择“显示日志”
- 选择两个修订版本(Ctrl-单击)
- 选择“比较修订”。这将在对话框中列出修订之间的修改文件
- 在出现的对话框中选择所有文件。右键单击所选文件并选择“将选择导出到...”
This should export the modified files with the folder structure.
这应该使用文件夹结构导出修改后的文件。
回答by Daniel DiPaolo
回答by Dan M
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.
如果你只是想让同事得到最新的文件,他们应该使用 svn-checkout 从 svn 服务器获取它。如果由于某种原因他们无法访问您的 svn 服务器,您也可以右键单击并选择 svn-export;这为您提供了包含文件夹中的所有文件的集合,而没有任何隐藏的 .svn 目录。