![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Get baseline name given baseline project? Topic Summary: Created On: 9-Mar-2004 00:43 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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... ;-) | |
![]() |
|
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. |
|
![]() |
|
![]() |
|
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_9 ![]() returns the result: 1) tra10 So, "tra10" is the name of the baseline that is associated with the project "demo_proj-Demo_9 ![]() |
|
![]() |
|
![]() |
|
Thank you! That appears to be the answer.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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... ;-) |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
Get baseline name given baseline project?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.