Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving svn changes for use in another computer? or backup uncommitted svn changes

Tags:

svn

Say I've made changes to some files but I don't want to check them in. I want to save the changes in a batch file or some archive and then email them to another dev/myself/etc.. so that they can take a look at my changes and apply them to their working copy. Is it possible to do this?

Simpler scenario

Can you backup uncommitted svn changes?

like image 954
jdelator Avatar asked Jun 06 '10 00:06

jdelator


1 Answers

If you want to just show them the changes that they can apply, you could create a patch.

svn diff > patchfile

If you've already committed, you can create a patch between different revisions.

For example, to create a patch of changes from 341 to the last revision:

svn diff -r 341:HEAD http://svn.example.com/repos/calc/trunk > patchfile

like image 164
Dan McGrath Avatar answered Nov 23 '22 11:11

Dan McGrath