如何在没有检出文件的情况下在 TortoiseSVN 中创建补丁?

发布于 2024-09-05 11:19:46 字数 182 浏览 2 评论 0原文

我知道如果某些文件被签出(修改),那么我可以右键单击包含的文件夹,然后选择“创建补丁”。之后我将看到所有签出文件的列表。所以我可以将它们包含在补丁中。 但是,当没有检出文件时,也就是所有内容都已提交时,创建补丁窗口为空。所以问题是如何从签入的文件创建补丁?我想将此补丁发送给同事,以便他们可以在公司 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

无人问我粥可暖 2024-09-12 11:19:46

统一的 diff 是一个补丁文件。

  1. 使用 TortoiseSVN,右键单击您的工作文件夹并选择“显示日志”
  2. 选择两个修订版(按住 Ctrl 键并单击)
  3. 右键单击任一突出显示的修订版并选择“将差异显示为统一差异”

以文件夹结构保存更改的文件。

  1. 使用 TortoiseSVN,右键单击您的工作文件夹并选择“显示日志”
  2. 选择两个修订版(按住 Ctrl 键并单击)
  3. 选择“比较修订版”。 这将在对话框中列出修订版之间修改的文件框
  4. 在出现的对话框中选择所有文件。右键单击所选文件并选择“将选择导出到...”

这将导出带有文件夹结构的修改后的文件。

A unified diff is a patch file.

  1. Using TortoiseSVN, right-click on your working folder and select “Show Log”
  2. Select the two revisions (Ctrl-Click)
  3. Right-click on either of the highlighted revisions and select “Show differences as unified diff”

To save the changed files with the folder structure.

  1. Using TortoiseSVN, right-click on your working folder and select “Show Log”
  2. Select the two revisions (Ctrl-Click)
  3. Select "Compare revisions." This would list the modified files between the revisions in a dialog box
  4. Select all the files in the dialog that comes up. Right-click on the selected files and select "Export selection to…"

This should export the modified files with the folder structure.

浅唱々樱花落 2024-09-12 11:19:46

您所描述的是两个颠覆修订之间的差异。查看 SVN Book 上关于 svn diff 看看如何做。

What you're describing is a diff between two subversion revisions. Check out the SVN Book's section on svn diff to see how to do it.

游魂 2024-09-12 11:19:46

如果你只是想让同事获取最新的文件,他们应该使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文