Connecting to Version Control System in Windows OS

To connect repository to version control system:

  1. Open the Parameters dialog box using the Tools > Parameters main menu item in the object navigator.

  2. Go to the Application Development tab:

  1. Install the additional software:

NOTE. The use of MSSCCI compatible software in the development environment of Foresight Analytics Platform is not supported.

NOTE. The libgit2 library does not support working with repositories that contain not full history. For example, the repository with no full history may be the result of cloning with the use of the depth parameter.

  1. In the drop-down menu of the Connect button select a provider that will be used on connecting to version control system:

  1. After executing the operation the dialog box for setting up the selected provider type opens.

When the Team Foundation Server provider is selected, the dialog box to select server opens:

Use the Servers button to create a list of servers. After the server is selected, the dialog box opens for setting correspondence between TFS server folders and local folders:

In the Folder Location tree select the project, within which version control will be used, and name of the server folder where files are will be stored. One can also create a hierarchy of folders to store different versions of the project. Click the Make New Folder button to create a new folder in the hierarchy.

In the Local Path box select a local folder where local versions of files will be stored. Select the workspace, to which the settings will be applied, in the Local Workspace drop-down list. Click the Add button to create a new workspace.

IMPORTANT. Team Foundation Server limits length of server version control system path. The path of the server version control system is the full path to the file stored in the system. The following restrictions affect this path:
    • Maximum 248 Unicode characters for a directory name.
    • Maximum 260 Unicode characters for both directory name and file name.

Possible Issues

In January 2022, Azure DevOps developers disabled support of outdated cryptographic protocols TLS 1.0 and 1.1. For details see the developer's article. If you face TFS connection issues, enable the TLS 1.2 protocol. Various TLS 1.2 protocol enabling options are given in the article on the developer's website.

To work with the Git version control system, it is supposed that the repository is already created and is cloned locally. When the Git provider is selected, the dialog box opens to select the local folder where the repository clone is located:

Select the folder to store files of repository objects and click the OK button.

  1. Restart the repository for the settings to be applied.

After executing the operations the repository is connected to version control system. Object versions are controlled in the object navigator and development environment. When repository is connected to version control system, the corresponding sections for object version control are added in the object navigator and the development environment.

If any errors occur, see theProblems on Working with Version Control System (VSC) subsection.

Setting Up Repository on Connecting to Version Control System

If you are setting up the repository that has been already connected to version control system on another computer, the Application Development tab looks as follows:

Information about repository connection to version control system is stored in the repository. It is possible to connect only to the system, for which the repository has been already configured. If required, determine settings on workstations of each developer in the team. After the repository is connected to version control system on a specific workstation, objects are edited locally. To allow other developers to access the made changes, check in them to the Team Foundation Server or Git server. At the same time the changes are saved to the repository.

NOTE. The users, whose workstations have not been set up to work with version control system, will use object versions stored in the repository. In this case the Application Development tab in the Parameters dialog box looks identically to the tab appearance after the repository is connected to version control system.

To change connection settings, click the Set Up button. After executing the operation repeat Step 5 described above.

To get and save the latest version of objects from server in the repository, click the Synchronize Repository button. Execute this command before the total disconnection of the repository from version control system.

NOTE. On synchronization all non-actual repository objects are updated. In this case a change date is updated for the object in the database, the current time in DBMS server is set as a current change date. This information is also updated in appropriate files on the drive.

To deny compilation of the units and forms created separately from assemblies, select the Deny Compilation of Units Outside Assembly checkbox.

To disconnect the repository from version control system, see the Disconnecting Repository from Version Control System section.

See also:

Developing Applications in a Team | Disconnecting Repository from Version Control System