Book a Demo

Author Topic: GetBaselines in Project interface  (Read 4531 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
GetBaselines in Project interface
« on: August 14, 2012, 03:37:36 pm »
Hi guys,

Has anyone successfully retrieved baselines from another DBMS/File than the on you are currently in?

The following code gets the same set of baselines regardless of the value of connctionString, and the set of baselines is from the current  model.

Project project = m_Repository.GetProjectInterface();
String baselines = project.GetBaselines(project.GUIDtoXML(package.PackageGUID), connectionString);

Any help will be appreciated :-)

Cheers
Knut

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: GetBaselines in Project interface
« Reply #1 on: August 14, 2012, 04:15:48 pm »
The ConnectionString parameter is currently ignored for the GetBaselines, DoBaselineCompare, and DoBaselineMerge methods.  This is a known issue which is yet to be resolved.  Sorry for any inconvenience.

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: GetBaselines in Project interface
« Reply #2 on: August 14, 2012, 04:25:39 pm »
Ok, thanks. No need to dig further :-)

The reason I am trying this is that it appears to me that to merge changes from a baseline using the EA GUI, you have to merge one by one. The Merge to Model button in the Compare Utility screen is only enabled when you click on a single change.

This becomes a very tedious job if there are many changes, so I wanted to be able to merge everything in one go. Any other options except waiting for the next build (Hopefully)?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GetBaselines in Project interface
« Reply #3 on: August 14, 2012, 05:09:29 pm »
You can do a complete recursive merge (don't remember the clicks). However, I'd touch baseline merging only with a hay fork. It reports differences where there are none!

q.

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: GetBaselines in Project interface
« Reply #4 on: August 31, 2012, 10:27:48 pm »
Quote
You can do a complete recursive merge (don't remember the clicks). However, I'd touch baseline merging only with a hay fork. It reports differences where there are none!

q.

Well, as long as you know it is possible, the motivation to keep searching is stronger :-)
Right click on the top level of the change tree in the compare utility, select 'Merge from baseline (with options), then check 'Full Restore from XMI' in the dialog.