Skip to main content

Dialog: Options – SVN Settings

Tab: General

Symbol: _svn_icon_repository_browser.png

Function: The tab includes the basic settings for CODESYS SVN.

Call: Tools → Options menu

Table 37. Automatic locking and merging

Merge

. Behavior for the commands Update, Merge, or Switch, when both sides (working copy and SVN repository) have changed from the base version
  • Mark all colliding changes as conflicts: The objects are not merged automatically. All changes with a conflict are marked as "Conflicted", even if some of them can be merged automatically.

  • Merge mergeable changes, mark the others as conflicts: Changes that can be merged are merged automatically. All others are marked as "Conflicted".

  • Merge mergeable changes, ask the user for the others: Changes that can be merged are merged automatically. The user is prompted for all others.

  • Always ask the user, even for mergeable changes: For all changed objects, the user is prompted, even if some of them can be merged automatically.

Locks

. Behavior how CODESYS SVN locks objects when they are changed locally
  • Always try to lock before modification: All objects are locked before they are changed, even if they can be merged.

  • Only lock the objects which don't support merging: Only those objects are locked which cannot be merged automatically.

  • Never acquire a lock automatically: No objects are locked, not even if they can be merged automatically.

Marker

  • Use conflict markers when merging objects: If conflicted objects exist that cannot be merged, then these conflicts are marked in the source code with conflict markers. In addition, the object itself is marked as being merged successfully (no conflict).

  • Leave non-mergeable objects as "conflicted": No conflict marker is set. Objects that cannot be merged remain in the status "Conflicted".

Prompt the user when automatic locking fails.

standard icon: If it is not possible to lock the object, then the Automatic locking failed dialog opens (see dialog description).



Example 2. Example of a conflict marker
Foo();
>>>>>>>>>>>>>>>
I := I + 1;
===============
I := I + 2;
<<<<<<<<<<<<<<<


Table 38. Checking the server

Check server for updates and locks

standard icon: CODESYS SVN checks in the specified time interval that objects have been updated on the server. Furthermore, it checks whether objects are locked or locks have been stolen.

Check interval (minutes)

Example: 10



Table 39. Ignore for comparison

Ignore whitespace

standard icon: Whitespace differences between the current project and the reference project are ignored.

Ignore comments

standard icon: Comments in the programming code are excluded from the comparison.

Ignore properties

standard icon: Object properties are excluded from the comparison.



Tip

Some of the SVN options can be overwritten by the project-specific settings.

Project-specific settings are defined in the Project Settings – SVN Settings dialog.

Tab: SSH

Symbol: _svn_icon_repository_browser.png

Function: The tab contains the settings for the SSH protocol.

Call: Tools → Options menu

Table 40. SSH client implementation

libssh2 (recommended)

CODESYS SVN uses Libssh2 for establishing a connection via SSH protocol. This is the recommended setting.

SharpPlink (backwards compatibility)

CODESYS SVN uses plink.exe for establishing a connection with SSH servers. This option is required only for communication with outdated servers that support the deprecated SSH-1 protocol.



Tip

The SSH configuration can be overwritten by means of the environment variable SVN_SSH, or server-specific by means of the SVN configuration file.