Posts Tagged ‘svn’

Simple way to get a diff to a server without subversion

// October 26th, 2008 // No Comments » // linux

I recently ran into the problem that I had to update the changes I made on my subversion sandbox to a shared hosting account.

In general you would just check out the revision you need or run a svn diff.

Sadly this is not only possible and you need to figure out the changed files which you need to copy to the server.

This simple little command creates a tar archive with the changed files.

Note: you should be in the path of the checked out repository.

let revision_start=196; let revision_end=225; tar cfv ../r$revision_start-$revision_end.tar `svn diff -r $revision_start:$revision_end . | grep Index | awk '{print \$2}'`