Skip to content
Svn diff export. Think exploded .patch. Performs an svn diff (between two branches), svn export and zip to create a release archive with only delta files. Take a baseline export to another tag.
Find file
Latest commit 09a4ed3 Philip Gloyne initial import
Failed to load latest commit information.
lib initial import
releases/1.0 initial import
src/com/primed/sde initial import
test/com/primed/sde initial import
.classpath initial import
.gitignore initial import
.project initial import
LICENSE.txt initial import
README.txt initial import


Svn Diff Export
Date: 25-JAN-2010
Author: Philip Gloyne (

Patch a baseline svn export to a newer branch. Allows a user to chain multiple svn commands: 
	svn diff --summarize | svn export <each file> | zip <dir>

We use it to patch a large deployed project on a server we can't directly export to.

Can be found in releases/1.0/svn-diff-export.bat.example


Create a diff.patch file
java -jar svn-diff-export-1.0.jar diff <old-branch-url> <new-branch-url> <diff-file>

Export each of the files described in the diff.patch to a target directory
java -jar svn-diff-export-1.0.jar export <diff-file> <old-branch-url> <new-branch-url> <target-dir>

Create a revision file (usually in a public folder - we put ours next to robots.txt)
java -jar svn-diff-export-1.0.jar revision <new-branch-url> <revision-file-full-path>

Create a .zip of the 'export' folder to push to the server
java -jar svn-diff-export-1.0.jar zip <directory-to-zip>

Unit tests. Tidy up docs.
Something went wrong with that request. Please try again.