<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SVN branches/tags</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/</id><updated>2020-02-27T15:00:23.035000Z</updated><subtitle>Recent posts to SVN branches/tags</subtitle><entry><title>SVN branches/tags</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/?limit=25#90bd" rel="alternate"/><published>2020-02-27T15:00:23.035000Z</published><updated>2020-02-27T15:00:23.035000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com4acfb9d07b1629c7ae764e80ec8f96ac2427eaba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi  MaGu.&lt;/p&gt;
&lt;p&gt;If you use the Copy command you can change the second parameter to "true" for switching immediately after the copy:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;system&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;commands&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;"svn"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;"copy"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"svn://new/destination/url"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;"commit message"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Otherwise you can use one of the switch methods of the project object. Look for IVersionedProject in the scripting documenation.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SVN branches/tags</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/?limit=25#12e5" rel="alternate"/><published>2020-02-27T15:00:21.353000Z</published><updated>2020-02-27T15:00:21.353000Z</updated><author><name>MaGu</name><uri>https://forge.codesys.com/u/magu/</uri></author><id>https://forge.codesys.com990f4019a26db9961c7e4e656a9ba339b583686a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SVN branches/tags</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/?limit=25#43b2" rel="alternate"/><published>2020-02-27T15:00:20.740000Z</published><updated>2020-02-27T15:00:20.740000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com0429c4a047ac125acfb498b787920df746c9e7a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The branch/tag commands were simply forgotten for the script interface. We have already an entry in our bugtracking. See &lt;a class="" href="http://jira.3s-software.com/browse/SVN-162" rel="nofollow"&gt;SVN-162&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There are two workaronds:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use the following command where the second parameter (as boolean) specifies if you want to switch to the new branch:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
system.commands&lt;span&gt;["svn", "copy"]&lt;/span&gt;.execute("svn://new/destination/url", "false", "commit message")&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the SharpSVN library directly (see attached python file)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1055" rel="nofollow"&gt;testbranch.py &lt;span&gt;&lt;span&gt;[417 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SVN branches/tags</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b0a475a15/?limit=25#8305" rel="alternate"/><published>2020-02-27T15:00:18.981000Z</published><updated>2020-02-27T15:00:18.981000Z</updated><author><name>MaGu</name><uri>https://forge.codesys.com/u/magu/</uri></author><id>https://forge.codesys.com69cff81f5b6ade3e516b2b2276b9d04b2a1b54e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>