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

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


Sure, use svn diff to grab a copy:

svn diff >modifications.patch

This creates a "patch" file that you can later move to another computer and apply there:

patch -p1 <modifications.patch

Note that if the remote computer has a working copy for a different revision of the Subversion repository, you may have conflicts when applying the patch. The patch program has a different process for resolving conflicts than Subversion itself.


If you are not confident in committing to the trunk, you can create a branch and commit there, and tell the other developers to check out that branch to review your changes.
When everything is ok you can then merge it to the trunk.

Tags:

Svn