开发者

How to use SVN to diff an entire repository (preferably with Tortoise SVN)

开发者 https://www.devze.com 2022-12-26 06:05 出处:网络
I\'m wondering if there is a way to create a diff of a r开发者_StackOverflow社区epository that you\'ve checked out and save it to a diff file so that you can contribute it to a project as a full patch

I'm wondering if there is a way to create a diff of a r开发者_StackOverflow社区epository that you've checked out and save it to a diff file so that you can contribute it to a project as a full patch. I'm using Tortoise SVN, but if it has to be at the command line, that's OK too.


Right-click the root directory of your working folder, and select TortoiseSVN/Create Patch...


You can compare two revisions using the svn diff command, but you'll need the SVN binaries for that purpose.

With TortoiseSVN, you can simply open up the "Show log" dialog, select two revisions, right-click and click on "Show differences as unified diff" - you can then save that diff file. If you only want to have a diff between your working copy and the checked-out revision, you can also use the "Create patch" feature.


I don't know about doing it with tortoise, but in a CLI it would be:

svn diff directory

And to save it to a file you would just redirect the output

svn diff directory > my-patch.diff
0

精彩评论

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