Book a Demo

Author Topic: Automate Version Control Settings  (Read 16867 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automate Version Control Settings
« Reply #15 on: May 29, 2014, 02:51:56 am »
To update the entry you need to
Code: [Select]
Repository.Execute ("UPDATE t_genopt ...") with what you need,

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Automate Version Control Settings
« Reply #16 on: June 09, 2014, 08:31:46 pm »
Quote
You have to do four things to put a package under version control.

1. Set the unique ID in %APPDATA%\SPARX_Systems\EA\paths.txt
2. Use API VersionControlAdd(..)
3. Set the svn path in registry
    HKEY_CURRENT_USER\Software\SPARX Systems\EA400\EA\Options\VC_SVNExePath
4. svn Timeout in registry (VC_TIMEOUT)

I hope it's all.

Helmut
I followed the instructions above; create a local path via the paths.txt, modify the registry entries.  I also verify that the unique ID is exist in t_genopt.

When I try to add a package to version control via the VersionControlAdd() method, I get the following error: "Could not find connection to version control provider."

What is missing?
Thanks.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automate Version Control Settings
« Reply #17 on: June 10, 2014, 01:37:56 am »
Might be a security issue. Have you checked that the user has write access to the VC repo?

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Automate Version Control Settings
« Reply #18 on: June 10, 2014, 05:29:38 pm »
Quote
Might be a security issue. Have you checked that the user has write access to the VC repo?

q.
I don't think it is a security issue. When I do this procedure manually- all right.

The configuration is still not set correctly despite the local path exists.
The package control options dialog looks like this:

Version Control : configName: (requires configuration)
File Name : %configName%\packageName.xml

Any ideas?
« Last Edit: June 10, 2014, 05:35:24 pm by avoda234 »

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Automate Version Control Settings
« Reply #19 on: June 16, 2014, 10:23:52 pm »
Quote
You have to do four things to put a package under version control.

1. Set the unique ID in %APPDATA%\SPARX_Systems\EA\paths.txt
2. Use API VersionControlAdd(..)
3. Set the svn path in registry
    HKEY_CURRENT_USER\Software\SPARX Systems\EA400\EA\Options\VC_SVNExePath
4. svn Timeout in registry (VC_TIMEOUT)

I hope it's all.

Helmut

There must be something we missed since it still does not work properly.

Is there another registry entry or database value that keeps data for this purpose?
The registry I've modified is the same as manual-defined configurations and I do not see something different.

Thanks in advance!