mîrifica s.r.l.

  • Increase font size
  • Default font size
  • Decrease font size

Export with TortoiseSVN's CLI (TortoiseProc)

(1 comments)   Share

How to export a versioned folder with the CLI of TortoiseSVN

TortoiseSVN (version 1.6.8 at the time of writing) has a HUGE documentation gap about exporting a versioned folder from the CLI (command line interface). If you type

TortoiseProc.exe /command:export /path:sourceFolder /closeonend:4

a dialog box will pop up requiring you to select the destination folder to export to, frustrating most efforts to write a TortoiseSVN batch script. Most forums recommend to solve this issue by installing and using Apache Subversion itself, a command line only application. But chances are that

  • you do not want to install / use yet another application
  • you cannot install / use yet another application
  • you have to use TortoiseSVN anyway in your script
  • exporting a working copy to a different location is done without using the Subversion library, so there's no matching command line equivalent
  • etc.

What is NOT documented to export a versioned folder using TortoiseSVN, is a command line like this:

TortoiseProc.exe /command:dropexport /path:sourcePath /droptarget:destinationPath /closeonend:4

The /closeonend parameter is always optional. If you want to investigate further, we suggest you to have a look at the source file "ContextMenu.cpp".

If you found this tip useful, please contribute to the TortoiseSVN community to document this feature. Anyway, enjoy it.

Go back

Add a comment

 
 
 
 

[Ryan - 28/02/2011 10:18] This feature's documentation was added in r20899, which means that it will be in the next release of TortoiseSVN - which it seems will probably be 1.7.

  Comment by Ryan | 28/02/2011
You are here: News