[pLog-svn] Best way to create incremental releases/patches?

Jon Daley plogworld at jon.limedaley.com
Wed Aug 31 14:22:28 GMT 2005


 	Maybe I understand your last comment now.
Using svn switch doesn't give you an empty directory with only the files 
that changed, so you would still need a bit more scripting.

Here is a tcsh script, so it uses foreach instead of for, but you get the 
idea.  It looks a little odd (-p is the key), but it works.  The cp will 
give a couple warnings about not copying directories, since I didn't use 
-r, but it will do the right thing.

>> svn checkout http://devel.plogworld.net/svn/plog/plog/tags/plog-1.0 .
>> svn switch http://devel.plogworld.net/svn/plog/plog/branches/plog-1.0.1
           > files
>> foreach i ( `grep "^[UA] " files | awk '{print $2}'` )
foreach? mkdir -p diff/$i
foreach? rmdir diff/$i
foreach? cp $i diff/$i
foreach? end


You probably also want some way to tell users which files to delete.
>> grep "^D " files



On Wed, 31 Aug 2005, Jon Daley wrote:
> 	Right, but in the process of switching it, it will show you the list 
> that has changed/added/deleted.
>
> On Wed, 31 Aug 2005, Oscar Renalias wrote:
>> but all I need is a list of the files that were changed from 1.0.1 to
>> 1.0.2, will this do? According to the manual, this will only switch
>> one working copy to another, nothing else.



More information about the pLog-svn mailing list