Book a Demo

Author Topic: getting version control configuration info?  (Read 4559 times)

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
getting version control configuration info?
« on: May 05, 2015, 01:33:53 am »
How can I retrieve the version control configuration information for a version controlled package?

I have looked around at the sparx object model documentation but I do not see any way to get this info for a version controlled package.

I see that I can check "package.isVersionControlled", and I can also retrieve the file name of the package in the vc system using "package.XMLPath", but I also need to get the VC repository details for the package, such as the URL or the Repository Root.

Anyone know where to look in the model for this information?

We are migrating packages from one VC repo to another and I would like to run a script that can tell me which VC repo each version controlled package is configured to use.

ThomasL

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: getting version control configuration info?
« Reply #1 on: May 05, 2015, 03:58:04 am »
Look for the "VCCFG=" parameter.

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: getting version control configuration info?
« Reply #2 on: May 05, 2015, 05:09:44 am »
Sorry I don't know what you mean here.

How do I get the string that you are talking about?

I am using a script within Sparx, making calls to the Sparx object model.

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: getting version control configuration info?
« Reply #3 on: May 05, 2015, 05:23:11 am »
OK thanks, that was enough of a hint.

After googling VCCFG I took a guess that it may be a string stored in the "flags" attribute of the package, and running a quick script check I can see the VC config name stored in there.

Thanks!