Wednesday, August 13, 2008

Applying an svn patch file

The patch command can be used to apply a file of diffs to an existing checkout. For example, if you create a patch file like this: svn di > foo.diff You can apply those changes with: patch -p0 -i foo.diff Note that this will not work with binary files because binary diffs are not shown by svn di.

No comments:

Post a Comment