I did a ton of changes to our code and before I commit, I would like a friend to review. Is there a way with SVN to take a copy of my working copy (to bundle everything in a package) and apply the changes I have made so far to another machines without having to commit?
In the past, with another source control system, I was able to do the following to “pack” and “unpack” my changes. Is there anything similar with SVN?
sourcecontrol.exe pack myChanges.pack
sourcecontrol.exe apply myChanges.pack
Thanks!
Sure, you can do this with the
svn diffcommand to create a patch file.You can send this patch file to other people for review using any usual method (since it is just a text file). To apply the changes,
Note that if you have made changes to any non-text files, the default behaviour of
svn diffis to omit the actual differences from the patch file (since the patch file is itself a text file and can’t contain other types of content such as images).The new generation of distributed version control tools such as Git and Mercurial handle this much more gracefully, including the ability to share more than one commit (set of changes).