views:

201

answers:

3

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.

+4  A: 

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

RedFilter
@OrbMan Perfect. Thanks.
orokusaki
+2  A: 

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
YuppieNetworking
@Yuppie +1 Thanks. I'll download and try this with the Subversion binary sometime.
orokusaki
+1  A: 

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.

AndiDog
@Andi +1 Thanks for the great information.
orokusaki