orokusaki
orokusaki

Reputation: 57118

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 repository 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.

Upvotes: 3

Views: 6326

Answers (3)

AndiDog
AndiDog

Reputation: 70158

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.

Upvotes: 3

YuppieNetworking
YuppieNetworking

Reputation: 8851

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

Upvotes: 2

D'Arcy Rittich
D'Arcy Rittich

Reputation: 171411

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

Upvotes: 9

Related Questions