Reasonable use of the command line, write the command line in the script, you can simplify the daily operation because all the commands of TORTOISESVN are controlled by command-line parameters, you can use batch scripts to automate or launch specific commands and dialogs from other programs (for example, your favorite text editor).
Important: Keep in mind that TortoiseSVN is a GUI client, and this automated guide shows you how to make the TortoiseSVN dialog box appear to collect user input. If you want to write a script that does not require input, you should use the Subversion official command line client.
TortoiseSVN command line, see official Help document Tortoisesvn→help tortoisesvn→automating TORTOISESVN→TORTOISESVN Commands, as follows:
TortoiseSVN GUI process is called TortoiseProc.exe, all command lines are specified with parameter/COMMAND:ABCD,ABCD is the desired command-line name. Most of these commands require at least one path parameter, with/path: "Some\path" to be given.
Because some commands can use a list of target paths (for example, to commit multiple specified files), the/path parameter can use several paths, separated by a * character.
Progress dialogs for Submit, update, and more commands are usually turned on after the command is completed until the user presses the OK button.
This can be changed by checking the appropriate Options Settings dialog box.
But using this setting will close the progress dialog box, whether you start the TORTOISESVN command from your batch file or the context menu.
For each command and related optional parameters, the official documentation has a detailed description of the command line commonly used are: log,: Checkout,: Import,: Update,: Commit,: Add, etc. in addition,/ The Closeonend parameter is used to automatically close the progress dialog box after the command line ends
Here are some examples of batch scripts (the TORTOISESVN command line should be written on one line): 1. Use the TORTOISESVN command line to open the Repo-browser Resource Explorer, eliminating the hassle of entering or switching URLs each time the batch command line is as follows: @echo off Start tortoiseproc.exe/command:repobrowser/path:https://ip[:p ort]/other/closeonend:1
Exit
2. Use the TORTOISESVN command line to open the Log dialog box and filter the log batch command line as follows: @echo off echo. Please enter what you want to filter set/p filter= start Tortoiseproc.exe/command:log/ path:https://ip[:p ort]/other/findtype:1/startrev:head/endrev:100/findstring: "%filter%" exit
3. Use the TORTOISESVN command line for update operations the batch command line is as follows: @echo off start tortoiseproc.exe/command:update/path:e:\svn_wc/closeonend:1
Exit
As on the batch command line: The start command indicates that a new process is opened to execute the subsequent command, similar to the command & in the shell of *nix, which runs the commands in the background. The exit command indicates exiting the batch command line.
TORTOISESVN Command Line use