View Single Post
  #2  
Old 03-27-2007, 02:42 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
Not being an export Subversion, here is what I found:

http://subversion.tigris.org/faq.html#terse-diff, which shows how to get a list of changed files between two versions (what I didn't see is a way to get only the files that match a filename mask, which doesn't seem to be supported by Subversion - maybe someone else can chime in with more info). The ContinuousIntegration.bld sample might also yield some ideas on this...

Here is a step that demonstates using this technique to get the list of changes files (between revisions 4 and 6 produced by the Subversion sample .bld file):
Code:
<step action='Subversion'>
	<LocalPath>%BASE_DIR%\work\trunk</LocalPath>
	<Revision>4:6</Revision>
	<ShowCmd>%SHOWCMD%</ShowCmd>
	<Subcommand>log</Subcommand>
	<Switches>-vq</Switches>
	<description>log history information for files</description>
	<indent type='3'>1</indent>
	<name>log</name>
</step>
You would probably want to use macros to specify the revision numbers and some other parameters of this step, and then parse %LASTSTEP_OUTPUT% either in vbld_StepDone of the Subversion step, or in a following Run Script step to get the subset of changed files that are binary files...

Note: you can copy the above xml fragment (which defines a single Subversion step) and paste into Visual Build Pro to "reconstitute" it as a step that you can view/edit/use.
Reply With Quote