开发者

How to create a patch in TortoiseSVN while no file is checked out?

开发者 https://www.devze.com 2023-01-02 23:25 出处:网络
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 the

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,


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消