CodeSys SVN - "Disconnect project from SVN" python api

JunhoKang
2019-11-29
2019-12-06
  • JunhoKang

    JunhoKang - 2019-11-29

    Hello

    I'm currently using CodeSys SVN with the purchased license, and I'm trying to make python script for it on script engine.
    Can I know how to disconnect project from svn in the script? I counldn't find any info of it..

    Either svn.method() way or system.commands[].execute() way doesn't bother me.

    Thank you
    Best regards,
    Junho

     
  • mkeller

    mkeller - 2019-12-06

    Hi Junho.

    Here some code to how to disconnect an versioned project:

    proj = projects.primary
    if proj.svn.is_versioned:
        proj.svn.disconnect()
    

    BR
    Martin

     

Log in to post a comment.