Hey, is there a way to use the " copy (branch/tag) " command ... and some steps following (switch to new location, increment version numbers, Placeholders...) within python (CODESYS). Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks, works fine. One thing. How to switch to the new location? I tried sharpsvn and i tried script interface. What is the best way? I am a little bit confused... path, uri, string, SvnUriTarget...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, is there a way to use the " copy (branch/tag) " command ... and some steps following (switch to new location, increment version numbers, Placeholders...) within python (CODESYS). Thanks!
Hi.
The branch/tag commands were simply forgotten for the script interface. We have already an entry in our bugtracking. See SVN-162.
There are two workaronds:
Use the following command where the second parameter (as boolean) specifies if you want to switch to the new branch:
Use the SharpSVN library directly (see attached python file)
BR
Martin
testbranch.py [417 Bytes]
thanks, works fine. One thing. How to switch to the new location? I tried sharpsvn and i tried script interface. What is the best way? I am a little bit confused... path, uri, string, SvnUriTarget...
Hi MaGu.
If you use the Copy command you can change the second parameter to "true" for switching immediately after the copy:
Otherwise you can use one of the switch methods of the project object. Look for IVersionedProject in the scripting documenation.
BR
Martin