Book a Demo

Author Topic: V12 - Add new package to Version Controlled parent  (Read 17191 times)

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
V12 - Add new package to Version Controlled parent
« on: August 26, 2015, 06:36:22 pm »
Hi,

Here is the scenario: I have a package that is Version Controlled. So I checkout the package and add a new package with a diagram to this Version Controlled parent package.

When following the instructions on the sparx website (http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/modeling_basics/addpackage.html) it says in step 4 that there is a 'Add to version control' checkbox that is selected. This is my ideal solution. However, in version 12 of EA there is no such option / checkbox.

Should I now manually add every new package to the parent package Version Control Configuration? This can become very tedious and I can by accident select the wrong Version Control Configuration...

Any advice?

Thanks,
Minna

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: V12 - Add new package to Version Controlled pa
« Reply #1 on: August 26, 2015, 07:16:08 pm »
Have you looked into Project/Version Control/Configure? This is actually the add function.

q.

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
Re: V12 - Add new package to Version Controlled pa
« Reply #2 on: August 26, 2015, 07:54:58 pm »
Hi qwerty,

This is true. I can either use 'Project/Version Control/Configure', right-click on package'/Package Control/Configure', or right-click on package'/Package Control/Add branch to version control' to add my new package (which is created as a child of a package that is already version controlled) to version control.

My comment is that this is a very tedious process to do this for every newly created package (that is child of an already version controlled package) and I can easily make a mistake and select the wrong version control configuration for my new package.

Is there no automated process as indicated in step 4 of this link? (a package added to version controlled parent will automatically be version controlled to same configuration as well)
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/modeling_basics/addpackage.html
(Version 12 of EA doesn't have this checkbox as discussed in the link in step 4)

Thanks,
Minna

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: V12 - Add new package to Version Controlled pa
« Reply #3 on: August 26, 2015, 08:17:55 pm »
You can use Package.VersionControllAdd to put a package under VC via the API.

q.
« Last Edit: August 26, 2015, 08:18:19 pm by qwerty »

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: V12 - Add new package to Version Controlled pa
« Reply #4 on: September 11, 2015, 04:39:57 pm »
I hope I understood you correct in what you want to achieve.

When you want a newly created "sub-package" below a version cotrolled parent package to be part of the "version control" of the parent package you have to do no further steps.
When checking in the parent package the newly created sub-package (and its complete content) will automatically be exported as well and checked in inside the *.xml file of the parent package.

When you want a newly created "sub-package" below a version cotrolled parent package to be separately under "version control" you have to right-click on the sub-package'/Package Control/Configure', thus creating a separate *.xml file with only teh content of the sub-package.
The *.xml file of the parent package will then only reference the other xml file (after the "parent xml" has been exported and checked in of course).

Kind regards
« Last Edit: September 11, 2015, 04:41:03 pm by Boron »

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
Re: V12 - Add new package to Version Controlled pa
« Reply #5 on: September 11, 2015, 07:55:18 pm »
Hi Boren,

Yes, what I want to achieve is the 'to be part of' scenario you explained. You then stated the following:

"When checking in the parent package the newly created sub-package (and its complete content) will automatically be exported as well and checked in inside the *.xml file of the parent package."

This quoted text is exactly what I want. Sadly, this does not happen automatically. As soon as I check in the Parent Package that is version controlled, the newly created package (that is a sub-package of the parent version controlled one) is not version controlled automatically.

Any advice?

Thanks,
Minna

PS - I use version 12 of EA


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: V12 - Add new package to Version Controlled pa
« Reply #6 on: September 11, 2015, 08:59:54 pm »
Minna,

The to be part of scenario does not version control the sub-package separately.
Only the parent package remains version controlled. In order to change something to the parent package or the sub-package you need to check-out the parent package.

If you want the sub-package to be version controlled as so you can check it in and out individually (without checking out the parent package) you will need to add it to version control manually.

There is no standard option to automatically version control all packages (although it wouldn't be too hard to write such a function yourself)

Geert