Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

SVN Checkout project -> overwrite

Anonymous
2018-11-01
2018-11-09
  • Anonymous - 2018-11-01

    Originally created by: el_diep

    Hey,

    I'm trying to checkout a project from my SVN-repository, using the script engine/python. When I check out a Project a second time, codesys asks me, if I want to overwrite the older Version. I want to prevent this and want to tell codesys to overwrite the project via python.

    Does anybody know, how that works?

    Regards
    Elias

     
  • ChrisI - 2018-11-02

    Hey el_diep,

    I have the same problem. I don't know how to overwrite.. But I have an alternative: before checkout the new project --> delete the old project. I am using this code:

    myfile = (ProjectPath+"/"+your.project)
    if os.path.isfile(myfile):
    os.remove(myfile)
    else:
    print("Your.project is not available")

    And now checkout...

    I hope thats a good help until a moderator help us.

    BR
    Chris

     
  • Anonymous - 2018-11-06

    Originally created by: el_diep

    ChrisI hat geschrieben:
    Hey el_diep,
    I have the same problem. I don't know how to overwrite.. But I have an alternative: before checkout the new project --> delete the old project. I am using this code:
    myfile = (ProjectPath+"/"+your.project)
    if os.path.isfile(myfile):
    os.remove(myfile)
    else:
    print("Your.project is not available")
    And now checkout...
    I hope thats a good help until a moderator help us.
    BR
    Chris

    Thanks Chris, that worked fine.
    I hoped, that I didn't have to use such a solution. But temporary it's OK.

    Perhaps a moderator might help us with another solution?

     
  • Anonymous - 2018-11-09

    Originally created by: el_diep

    Another nearly similar problem:

    When there are any problems loading a project, there are Popups, too. Are there any possibilities to prevent this.

    Popups in an automation-environment of an IDE are self-defeating

     

Log in to post a comment.