Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Get baseline name given baseline project?
Topic Summary:
Created On: 9-Mar-2004 00:43
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Todd Alden, on Friday, March 11, 2005 5:06 PM

Answer:
Using %baseline in the format of the output will not do what Alan wanted.

%baseline refers to the "Baseline Project" attribute in the reconfigure properties of the project. It does not refer to any Baseline object(s) that have been associated with the project.

(This confusion is caused by the overloading of the term 'baseline' with in the tool, but that's a topic for another thread... ;-)
 9-Mar-2004 00:43
User is offline View Users Profile Print this message


Alan Jeddeloh

Posts: 7
Joined: 13-Aug-2003

I need to learn the name of the baseline corresponding to a baseline project. I can get the projects associated with a baseline without a problem; I need to go the other way: given a baseline project in integrate state p1~int_1.1_20040301, what was the baseline name? Note that I may create more than one baseline for various projects on a given day, so parsing the version of the project is not reliable.

There must be a query for a relationship, since "ccm baseline show projects <baseline_name>" returns results in query form.
Report this to a Moderator Report this to a Moderator
 9-Mar-2004 19:59
User is offline View Users Profile Print this message


Todd Alden

Posts: 71
Joined: 4-Oct-2002

If I understand your question correctly, the query function you are looking for is:

has_project_in_baseline('<project_name>')

Use the four-part name of the project.
For example, the following CLI:
ccm query "has_project_in_baseline('demo_proj-Demo_9roject:tut63#1')" -f %name
returns the result:
1) tra10
So, "tra10" is the name of the baseline that is associated with the project "demo_proj-Demo_9roject:tut63#1".
Report this to a Moderator Report this to a Moderator
 10-Mar-2004 23:23
User is offline View Users Profile Print this message


Alan Jeddeloh

Posts: 7
Joined: 13-Aug-2003

Thank you! That appears to be the answer.

Report this to a Moderator Report this to a Moderator
 20-Apr-2004 14:51
User is offline View Users Profile Print this message


Barbara Neeb-Bruckner

Posts: 7
Joined: 27-Aug-2003

May be another solution for you is to use the %baseline keyword in the format string:

ccm query -t project -n xyz -f "%displayname %baseline"

shows the baseline if existent, otherwise "No baseline"

Regards, Bárbara Neeb-Bruckner
Report this to a Moderator Report this to a Moderator
 20-Apr-2004 21:40
User is offline View Users Profile Print this message


Todd Alden

Posts: 71
Joined: 4-Oct-2002

Answer Answer
Using %baseline in the format of the output will not do what Alan wanted.

%baseline refers to the "Baseline Project" attribute in the reconfigure properties of the project. It does not refer to any Baseline object(s) that have been associated with the project.

(This confusion is caused by the overloading of the term 'baseline' with in the tool, but that's a topic for another thread... ;-)
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.