You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Moshe Gurvich <mo...@varien.com> on 2006/06/10 00:51:24 UTC

Get svn files delta

Made tiny script for myself to get tared file delta fast to make minor QA
and production updates (including binary files), 
maybe someone will find it of use :)
 
svnfd:
-----------8<-----------
#!/bin/bash
svn diff -r $1 | grep "^Index:" | perl -pe "s/^Index: (.*)/\$1/g"
----------->8-----------
 
(of course if you don't expect in your code strings that start with "Index:
" :) )
 
Usage examples:
 
* to get file list that were changed in your working copy since revision
126: 
    svnfd 126
 
* to get file list that were updated between revisions 126 and 130: 
    svnfd 126:130
 
* to get archive of updates in repository since revision 126: 
    svnfd 126:HEAD | tar cvjf update.tar.bz2 -T -
 
Please comment if there's better way to do this
 
-moshe