Book a Demo

Author Topic: Reverting model back to a previous revision  (Read 3803 times)

nexdev

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Reverting model back to a previous revision
« on: December 01, 2009, 01:47:48 am »
Hi,

I have just setup a team working environment for EA following the Shared Model configuration described in the Setting up Version Control White Paper. We are using subversion for our version control and MSSQL for our shared EA repository and this seems to be working ok.

However, I can't see how we would go about reverting a model to a previous revision should the need arise. Clearly we would have the model information available to us in our svn repository but I'm not sure how we get that into our EA repository.

Is it possible to do this from within EA or would we need to do something like:
  • Revert to the required revision using a version control client, tortoise svn in our case
  • Import model details for all affected packages from the local xml files
  • Checkout the affected packages in EA
  • Check them back in again in EA
I have tried this and it seems to work although when I diff the xml files in svn I see (when comparing the latest with the revision that was reverted to) lots of differences when I might have expected to see none. Is this just a side effect of how the XMI files are generated?

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: Reverting model back to a previous revision
« Reply #1 on: December 01, 2009, 03:01:34 am »
I think you are about right, just the order seems a bit odd.
Shouldn't that be:

  • Revert to the required revision using a version control client, tortoise svn in our case
  • Checkout the affected packages in EA
  • Import model details for all affected packages from the local xml files
  • Check them back in again in EA

Because if you haven't checked-out a package you can't edit it, and if you check it out after you've imported the previous version then EA will first get the latest file from SVN before importing.

There are still some bugs in the compare utility, so that could explain the differences you're seeing. I've logged a few of them, but they haven't all been fixed yet.

Geert

nexdev

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Reverting model back to a previous revision
« Reply #2 on: December 01, 2009, 04:25:39 am »
Good spot, I think I got myself a bit muddled there.   :)

Thanks.