read out svn revison number to a project variable

learnetk
2015-12-07
2015-12-07
  • learnetk - 2015-12-07

    Hi
    Is it possible to read out the svn Revision number to a variable in the Project. Could someone help with a small script. I am not using the Codesys svn.

    Thanks & regards

     
  • Anonymous - 2015-12-07

    Originally created by: M.Schaber

    Hi,

    learnetk hat geschrieben:
    Hi
    Is it possible to read out the svn Revision number to a variable in the Project. Could someone help with a small script. I am not using the Codesys svn.

    I'm not sure which svn Revision number you want to read.

    If it's about projects or objects within a project which is connected via CODESYS SVN, then I think using the CODESYS SVN AddOn is the only way to do it, it provides an SVN_VERSION_INFO object where you can read the project revision number - but this SVN_VERSION_INFO is only available when the SVN AddOn is installed and active (because it cannot be guaranteed to be up to date when no SVN Plugin is there).

    There are three special cases, however:

     

Log in to post a comment.