<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/</id><updated>2020-02-27T15:02:18.545000Z</updated><subtitle>Recent posts to Subversion</subtitle><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#ac03" rel="alternate"/><published>2020-02-27T15:02:18.545000Z</published><updated>2020-02-27T15:02:18.545000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com8578f8011ac6ae1817787982d4faa929d6e162b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Thomas233.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Thomas233 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Can please someone look up if "SVN-33" is planned?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is not planned. There is no plan for the next release of CODESYS SVN at the moment.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#20e9" rel="alternate"/><published>2020-02-27T15:02:17.939000Z</published><updated>2020-02-27T15:02:17.939000Z</updated><author><name>Thomas233</name><uri>https://forge.codesys.com/u/thomas233/</uri></author><id>https://forge.codesys.comb9f52608aee8086853b3fccbbe9647ca4ad8bfc3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can please someone look up if "SVN-33" is planned?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#8bff" rel="alternate"/><published>2020-02-27T15:02:16.203000Z</published><updated>2020-02-27T15:02:16.203000Z</updated><author><name>Thomas233</name><uri>https://forge.codesys.com/u/thomas233/</uri></author><id>https://forge.codesys.comac9db481c4b6a2cc30a5539c858388b01990c18f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;lauriollila hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Any idea why this following snippet throws ArgumentTypeException when trying to update project with revision number (see comments)...seems that  wants to work with timestamp and refuses to take revision number as a parameter...which in our case is irrelevant.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can reproduce this error. but i found two workarounds. ether you can user something like:&lt;br/&gt;
proj.svn.update_to(867)&lt;br/&gt;
or&lt;br/&gt;
proj.svn.update_to(revision=867,recursive=True,omit_externals=false).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;M.Schaber hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
SVN-33: Expose essential information of versioned objects and projects - this aims to expose information like status, working copy info, log etc. via scripting API.&lt;br/&gt;
I am curoius about this issue, but i have no access to Jira. &lt;br/&gt;
I need to get the svn-revision number of a manually checked out project.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#c78d" rel="alternate"/><published>2020-02-27T15:02:15.549000Z</published><updated>2020-02-27T15:02:15.549000Z</updated><author><name>lauriollila</name><uri>https://forge.codesys.com/u/lauriollila/</uri></author><id>https://forge.codesys.com602e720ef3829ce400b81d88c5b0b0741105c7a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any idea why this following snippet throws ArgumentTypeException when trying to update project with revision number (see comments)...seems that  wants to work with timestamp and refuses to take revision number as a parameter...which in our case is irrelevant.&lt;/p&gt;
&lt;p&gt;from &lt;strong&gt;future&lt;/strong&gt; import print_function&lt;/p&gt;
&lt;p&gt;from scriptengine import * &lt;/p&gt;
&lt;p&gt;import datetime&lt;br/&gt;
# 30/06/16 18:00&lt;br/&gt;
date = datetime.datetime(2016, 06, 30, 18, 00)&lt;/p&gt;
&lt;p&gt;projectpath = r'c:\work\Pythontrunk\trunkpython.project'&lt;/p&gt;
&lt;p&gt;proj = projects.open(projectpath) &lt;/p&gt;
&lt;p&gt;#proj.svn.update() # updates to head, works well&lt;/p&gt;
&lt;p&gt;"""&lt;br/&gt;
void update_to(&lt;br/&gt;
    long revision,&lt;br/&gt;
    bool recursive = true,&lt;br/&gt;
    bool omit_externals = false&lt;br/&gt;
)&lt;br/&gt;
"""&lt;/p&gt;
&lt;p&gt;proj.svn.update_to(867, True, False) # doesn't work: "expected DateTime, got int"&lt;br/&gt;
#proj.svn.update_to(long(867), True, False) # doesn't work: "expected DateTime, got long"&lt;br/&gt;
#proj.svn.update_to(date, True, False) # even this doesn't work : "expected DateTime, got datetime"&lt;/p&gt;
&lt;p&gt;projects.primary.save()&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#784d" rel="alternate"/><published>2020-02-27T15:02:14.892000Z</published><updated>2020-02-27T15:02:14.892000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc06e90d127626c775c9393bbf03d70b4badb9201</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;We know that the current presentation of the documentation is suboptimal, at least, and we have plans to improve the documentation by making it more "pythonic" and include it directly in the online help, in a similar process as we currently establish for the IEC libraries.&lt;/p&gt;
&lt;p&gt;However, other task currently have higher priority, so it was never scheduled for a release.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#a3fa" rel="alternate"/><published>2020-02-27T15:02:13.129000Z</published><updated>2020-02-27T15:02:13.129000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com16eba3af7215a8181e0239b6ef4a1bc2467cf1cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello jking22.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jking22 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
1. I think/hope you mean  "proj.update()" rather than "proj.update()"...  I had to change this to get it to work properly.&lt;br/&gt;
2. The help file seems quite confusing.  Do you have a list of common objects? e.g.&lt;br/&gt;
&lt;em&gt;proj.svn.&lt;br/&gt;
&lt;/em&gt;project.static_Analysis.???&lt;br/&gt;
  *Others?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;1.) You are right. I never used the SVN Integration with Scripting. I looked through the documentation but missed the part about the ".svn".&lt;br/&gt;
2.) Sorry, but that's the only documentation we have right now. You could try the build-in method dir(&lt;span&gt;[object]&lt;/span&gt;) to find the modules, classes and objects. See the python documentation.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#d3c6" rel="alternate"/><published>2020-02-27T15:02:12.510000Z</published><updated>2020-02-27T15:02:12.510000Z</updated><author><name>jking22</name><uri>https://forge.codesys.com/u/jking22/</uri></author><id>https://forge.codesys.com51bec4244533f4d42d87417f9b6db6eeac26589d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Martin,&lt;/p&gt;
&lt;p&gt;This helps.&lt;/p&gt;
&lt;p&gt;A few comments though...&lt;br/&gt;
1. I think/hope you mean  "proj&lt;strong&gt;.svn&lt;/strong&gt;.update()" rather than "proj.update()"...  I had to change this to get it to work properly.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The help file seems quite confusing.  Do you have a list of common objects? e.g.&lt;br/&gt;
&lt;em&gt;proj.svn.&lt;br/&gt;
&lt;/em&gt;project.static_Analysis.???&lt;br/&gt;
  *Others?&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#fe32" rel="alternate"/><published>2020-02-27T15:02:11.889000Z</published><updated>2020-02-27T15:02:11.889000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comaa51661af607ed5d5e02ea7082aff0f370bb9343</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello  jking22.&lt;/p&gt;
&lt;p&gt;To update a versioned project you call the method update() on the project object:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;proj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;primary&lt;/span&gt;
&lt;span class="n"&gt;proj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;update&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You find the SVN related documentation in the ScriptEngine documentation (sub-directory OnlineHelp in the CODESYS directory) under _3S.CoDeSys.SubversionIntegration.ScriptDriver.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#671d" rel="alternate"/><published>2020-02-27T15:02:10.145000Z</published><updated>2020-02-27T15:02:10.145000Z</updated><author><name>jking22</name><uri>https://forge.codesys.com/u/jking22/</uri></author><id>https://forge.codesys.comcfe647fc625fa0b1f9cc1029430c804a0c06de3c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any suggestions that would detail how to SVN update the entire project via Python Script.&lt;/p&gt;
&lt;p&gt;e.g. looking for python equivalent of:&lt;br/&gt;
    &amp;gt;&amp;gt;Project&amp;gt;&amp;gt;SVN&amp;gt;&amp;gt;Update Project&lt;/p&gt;
&lt;p&gt;Pointer to proper documentation would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Subversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcd91abbe/?limit=25#cd6f" rel="alternate"/><published>2020-02-27T15:02:09.478000Z</published><updated>2020-02-27T15:02:09.478000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3b6c1b65e52e891ccbfbdd478f28b6d23e3bbc38</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://jira.3s-software.com/browse/SVN-187" rel="nofollow"&gt;SVN-187&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;HTH!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>