Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Compare two snapshots using scm compare command

Hi,
I want to compare two snapshots using the scm compare command to list out the change sets delivered delivered between two.
This should also give me the work item associated with the changeset delivered.
I use the following command:
"scm compare -I ws -f i ss $Snap1 ss $Snap2 -r rtcuser > compare.log"
But when one of the changeset of the work item is delivered prior to $snap1,how can I capture that too?
What modification should be done to scm cli?
IS there a better way to capture such snapshots?

-1 votes



2 answers

Permanent link
The SCM commandline baseline/snapshot compare, as far as I can tell, ONLY looks at the change sets in a compare.
It does not provide insight in changesets related to work items.
It does not automatically compute the transitive closure of the change sets linked to a work item. Especially since you could have any change set related to a work item, that not even needs to be in a stream or components that the snapshots look at, this would not make a lot of sense either.

With compare https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/compare.html you can get the work items related to the changes.

You can grab the work items you get from that compare and compute the related work items  and feed it into list changesets https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/list_changesets.html to get the change sets related to the work items you got for the compare. In which case you compute the transitive closure yourself.

Please carefully check with the help of the version of RTC you are using f this already available to you.

1 vote

Comments

Thanks for the info.


Permanent link
You can, as far as i am aware, only get the work items and change sets that make up the difference between these two. If you want the earlier one, you would ave to use an earlier snapshot/baseline for the compare.

0 votes

Comments

Any modification to CLI required to capture the earlier change set also?
Or if we can give the value of base snapshot programmatically making it prior to the oldest change set?

What do you want to achieve here?

I want to get all the change sets for the work items between two snapshots.
But in case one of the change set of work items is older than the base snap shot then that also should be captured. It should not be missed out.
For this requirement if I need to modify the above the cli what modification is required?

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,381
× 1,202
× 113

Question asked: Aug 13 '14, 1:27 a.m.

Question was seen: 6,347 times

Last updated: Aug 20 '14, 1:40 p.m.

Confirmation Cancel Confirm