开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜