Skip to main content

Object: SVN_VERSION_INFO

Symbol: _svn_icon_version_info.png

The object contains the SVN metadata of the project as global constants or variables in a variable list. It is located in the POUs view. You can call specific data in the application from the global constants or variables. By calling specific data, you can also reduce the memory usage on the controller.

. The SVN metadata is provided for this purpose, subdivided over multiple global variable lists (GVLs):
  • SVN_VERSION_INFO

  • SVN_Info_Summary

  • SVN_Info_SummaryW

  • SVN_Info_URI

  • SVN_Info_Revisions

  • SVN_Info_Flags

  • SVN_info_LastChange

The SVN_VERSION_INFO object is created automatically when a project is versioned by importing it into a SVN repository. To do this, the Create SVN_VERSION_INFO option has to be selected in the Import project to SVN dialog.

Moreover, in the Project Settings – SVN Settings dialog, you can use the Generate SVN_VERSION_INFO constants for IEC Access option to create the object or remove it from the project.

Table 48. Global constants

Name

Data Type

Description

MINREVISION

LINT

Lowest revision number of the working copy

MAXREVISION

LINT

Highest revision number of the working copy

PARTIAL

BOOL

TRUE: The working copy is incomplete.

Example: Cancellation during the last update due to a network error or a Checkout)

MODIFIED

BOOL

TRUE: Local changes were made.

SWITCHED

BOOL

TRUE: Parts of the project were branched (with the Switch command).

VERSION

STRING

Version identification, similar to Apache™ Subversion® (subversion.exe)

Example: 12:34M, means MINREVISION = 12, MAXREVISION = 34, MODIFIED = TRUE

For more information, see the documentation for Apache™ Subversion®.

CLEAN

BOOL

TRUE: The version is clean.

This is the case when MINREVISION is equal to MAXREVISION, the working copy is complete, and non-versioned, and is was not switched.

URL

WSTRING

SVN-URL of the project

Example: https://svnserver/repository/trunk/ControlABC.project



Tip

If a controller does not support the data type WSTRING, then a compiler error is issued when accessing the object SVN_VERSION_INFO.