Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

export changed files using tortoise svn to another directory

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.

like image 428
kiev Avatar asked Jan 21 '10 16:01

kiev


People also ask

How do I move a file from one directory to another in SVN?

Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.

How do I copy a folder from one directory to another in SVN?

The easiest way to copy files and folders from within a working copy is to use the right drag menu. When you right drag a file or folder from one working copy to another, or even within the same folder, a context menu appears when you release the mouse.

How do I export my TortoiseSVN repository?

To export single files with TortoiseSVN, you have to use the repository browser (the section called “The Repository Browser”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.

How do I move files in SVN without losing history?

If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.


2 Answers

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...".

like image 113
Stefan Avatar answered Sep 18 '22 14:09

Stefan


From the TortoiseSVN daily use guide:

Another way to export from a working copy is to right drag the working copy folder to another location and choose ... Context Menu → SVN Export changed items here ... The third option exports only modified items, but maintains the folder structure.

like image 39
Sepster Avatar answered Sep 20 '22 14:09

Sepster