Book a Demo

Author Topic: Disconnect from version control  (Read 3899 times)

Anderl

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Disconnect from version control
« on: March 14, 2011, 09:48:03 pm »
Can someone please give me a hint how to accomplish the equivalent of "Disconnect from version control" (i.e. clearing the "Control Package" checkbox in the GUI) via an (e.g.) VB script? I have a nested hierarchy of packages, several of them version controlled and I'd like to export this hierarchy without the version control. Just setting the "IsControlled" attribute to "False" doesn't seem to be enough.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Disconnect from version control
« Reply #1 on: March 14, 2011, 11:56:26 pm »
In v8 I think you'll have to edit it directly into the database.
I believe v9 has a function to remove a package from version control.

Geert

Anderl

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Disconnect from version control
« Reply #2 on: March 15, 2011, 02:19:17 am »
I'd been afraid of that.

Thanks.
Andreas

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Disconnect from version control
« Reply #3 on: March 16, 2011, 09:38:27 am »
The method Package.VersionControlRemove() works for me.

Iterate recursively over packages executing it.

Anderl

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Disconnect from version control
« Reply #4 on: March 17, 2011, 06:43:53 pm »
Quote
The method Package.VersionControlRemove() works for me.

I tried that. However, we're using clearcase and every then and when (when cc detects that I'm not looking at the latest version) a clearcase confirmation window (asking for checkout!) pops up needing manual intervention.

Andreas