Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » Database administration » SQL Anywhere graphical administration tools » Interactive SQL » Source control integration in Interactive SQL

 

Configuring Interactive SQL to use source control

Before you can perform source control actions on files, such as checking files in and out, comparing different versions of a file, or viewing the history for a file, you must configure Interactive SQL to use source control.

Prérequis

Your source control system must be set up.

If you are running Interactive SQL on a Windows computer that has a source control product that supports the Microsoft SCC API, you can use that product or use a custom (command line oriented) system.

 Task
  1. In Interactive SQL, click Tools » Options.

  2. In the left pane, click Source Control.

  3. Click Enable source control integration.

    Option Action
    Configure SCC source control systems Click OK.
    Configure other source control systems
    1. Click Configure.

    2. In the Custom Source Control Options window, click Reset.

    3. Select your source control system from the list, and then click OK.

    4. Edit the commands in the list as necessary by selecting an action from the Source Control Actions list, and then typing the corresponding command in the Command Line pane.

      When you are defining commands for your system in the Source Control Actions list, use the placeholder [FILENAME] to represent the name of the file that is used when you run the command. For example, the command to submit a file in Perforce is p4 submit [FILENAME]. Only the actions that appear bold in this list have commands defined for them.

      The Custom Source Control Options window showing defined commands in bold.

      If you do not specify a command line for an action, the item in the File » Source Control menu is disabled.

      Tip

      You can export your source control command lines to an external file by clicking Export in the Custom Source Control Options window (accessed by clicking Tools » Options, and then clicking Configure on the Source Control pane). You can later read these commands back in by clicking Import in this window. This may be useful if you need to configure Interactive SQL source control command lines on several computers.

    5. Click OK, and then click OK again.

Résultat

The source control system is integrated.