TORTOISESVN Command Line use

Source: Internet
Author: User
Tags tortoisesvn

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.