[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Get svn files delta

From: Moshe Gurvich <moshe_at_varien.com>
Date: 2006-06-10 02:51:24 CEST

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
Received on Sat Jun 10 02:53:55 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.