Subversion Patches
Sometimes I need to create a patch for the local changes of my Subversion working copy. This can be achieved very easily using the following command (typically issued from the root directory of the checkout):
svn diff > ~/local_changes.diff
The patch can then be applied on a different working copy by applying the command:
patch -p0 -i ~/local_changes.diff
The command output will tell which parts of the patch have been applied successfully and which ones, if any, have failed.
If you work with IntelliJ IDEA, I suggest you both create and apply the patch with IDEA, since patches created by Subversion do not work well when applied in IDEA.




0 Comments:
Post a Comment
<< Home