Book a Demo

Author Topic: SVN  (Read 7836 times)

Wishmaster84

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
SVN
« on: January 11, 2022, 09:46:11 pm »
Hi,

I'm placing the model under version control with SVN. This is the first time with an external versioning system and I'm following steps instruction from the user guide.
The repository now contains different folders and a .EAB file. I suppose people that need to work with the same model need to checkout the files from the repository but it is not clear to me how they can import the model in EA.

Thanks,


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SVN
« Reply #1 on: January 11, 2022, 09:59:46 pm »
The easiest way to start is to use the same model from the start.

If that is not possible (or something get added later) they can import the xmi files from the svn working folder into their model.
They might need to do a few "Getlatest" operations to get the whole thing after importing the top level package.

I believe there is also an option to import the .eab file, but I don't generally use .eab files at all.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SVN
« Reply #2 on: January 12, 2022, 09:17:58 am »
The eab file basically identifies a top level (as far as version control is concerned) package.  Once you have a lot of packages in version control it becomes hard to identify which ones are top level without it.

Use the Import Branch option to select one of these from the version control and it imports that package and all child packages.

Wishmaster84

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: SVN
« Reply #3 on: January 14, 2022, 03:31:40 am »
Hi,

Thanks, I have followed the import a Model Branch... option and I'm able to import all the model with versioned packages. Anyway, all the packages are locked and I'm not able to unlock.
Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SVN
« Reply #4 on: January 14, 2022, 03:35:12 am »
Hi,

Thanks, I have followed the import a Model Branch... option and I'm able to import all the model with versioned packages. Anyway, all the packages are locked and I'm not able to unlock.
Thanks
You have to do a checkout to unlock the packages.

Geert

Wishmaster84

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: SVN
« Reply #5 on: January 14, 2022, 03:42:07 am »
When I checkout the branch i have a warning message saying that the packages are already checked out.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SVN
« Reply #6 on: January 14, 2022, 05:10:50 am »
Then you either have to check in the packages first (possibly from your other model)
Or you have to res-synch the status to get EA's status to correspond to SVN's status.

Geert

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: SVN
« Reply #7 on: January 14, 2022, 12:34:49 pm »
It's worth considering using a more robust database to hold the model and not using versioning. The svn process is cumbersome doesn't scale well (in my opinion). We've used Postgres backends for our last few projects and it's much easier (of course, you need to get the Postgres server set up). That's served our purpose well.

If you consider moving on past the svn approach, the more powerful relational databases work well in my experience.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SVN
« Reply #8 on: January 14, 2022, 04:33:35 pm »
It's worth considering using a more robust database to hold the model and not using versioning. The svn process is cumbersome doesn't scale well (in my opinion). We've used Postgres backends for our last few projects and it's much easier (of course, you need to get the Postgres server set up). That's served our purpose well.

If you consider moving on past the svn approach, the more powerful relational databases work well in my experience.
On isn't an alternative for the other. Version control and central databases have different use cases.
Do make sure you choose for version control because of the right use case.

I usually combine version control with central databases.

Geert