views:

141

answers:

3

For my project I would like to export only the changed/added files since last update (those marked with red exclamation or plus sign) using tortoise svn, however I can't seem to find the right combination to do this simple task.

What I do now is do xcopy with specified modified date, however it misses some files which were simply added to a folder and not modified. Since I can get a list of changes, I don't see any way to simply export these files to a deploy directory.

A: 

That's not a built-in feature of Tortoise. You could probably whip up a script in powershell that would parse the output of 'svn st' and copy the files though.

Tom Ritter
A: 

Your best bet might be to use svn status, then grep on the file codes to determine what files to copy.

see http://svnbook.red-bean.com/en/1.0/re26.html.

Steve
+1  A: 

Check-for-modifications dialog, sort by status. Shift-Click or Ctrl-Click to select all those with "modified" and "added" status. Then simply right-drag the files from the Check-for-modifications dialog to another folder in explorer.

Another way (if you already committed your changes): Show log dialog, select all revisions with the interesting changes. In the lower pane, shift-select all entries, right-click, choose "save as".

Yet another way: Use the repository browser, find the first url (assuming you want to export everything that's changed between two tags, e.g., version 1 and version 2), right-click, "Mark for comparison". Find the second url, right-click, "compare urls". In the following "changed files" dialog, select all files, right-click, choose "export selection to...".

Stefan
Great, thanks! It never occurred to me to simply drag those files :)
kiev