a/trunk/cforge/cforge/Package/CFORGE/Scripts/action.svn.commit.py | b/trunk/cforge/cforge/Package/CFORGE/Scripts/action.svn.commit.py | ||
---|---|---|---|
... |
... |
||
27 | req.username = username |
27 | req.username = username |
28 | req.password = password |
28 | req.password = password |
29 | req.save = True # Optional |
29 | req.save = True # Optional |
30 | 30 | ||
31 | 31 | ||
32 | svn.auth_username_password += set_username |
||
33 | # checkout plain SVN files |
32 | # checkout plain SVN files |
34 | pysvn.svn_commit_non_codesys(username, password, path, message) |
33 | pysvn.svn_commit_non_codesys(username, password, path, message) |
35 | 34 | ||
36 | # iterate over all projects and libraries |
35 | try: |
36 | svn.auth_username_password += set_username |
||
37 | # iterate over all projects and libraries |
||
37 | for root, dirs, files in os.walk(path): |
38 | for root, dirs, files in os.walk(path): |
38 | for file in files: |
39 | for file in files: |
39 | if file.endswith(".project") or file.endswith(".library"): |
40 | if file.endswith(".project") or file.endswith(".library"): |
40 | filepath = os.path.join(root, file) |
41 | filepath = os.path.join(root, file) |
41 | proj = projects.open(filepath) |
42 | proj = projects.open(filepath) |
42 | proj.svn.commit(message) |
43 | proj.svn.commit(message) |
43 | proj.save() |
44 | proj.save() |
44 | proj.close() |
45 | proj.close() |
45 | 46 | except: |
|
47 | print "Seems like the CODESYS SVN package is missing. Checked out only plain files and no CODESYS projects." |
||
48 | pass |
||
49 | |||
46 | system.exit() |
50 | system.exit() |
47 | 51 | ||
48 | 52 |