How to create a patch in TortoiseSVN while no file is checked out?
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.
- 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”
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…"
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.
精彩评论