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

Handling changeset

Hi,

I have 2 questions.

1. Is there any way to know changeset id within eclipse client?
I know I can get it by using scm command(scm status), but I'd like to get it in an eclipse client.


2. Is it possible to extract all the files associated to the changeset?
When I use scm command(scm extract), I need to specify the path for each file.
I'd like to get all the files in the changeset in one operation.

I't be great if someone could give me any ideas.

Thank you in advance.

0 votes


Accepted answer

Permanent link
The changeset ID shown in the SCM CLI is unique to that particular client and not available in the eclipse client. This ID cannot be shared with other users because the numbers are generated on-demand for a particular user for their CLI sessions. For example, the same changeset could have ID 1022 for me while it is 1010 for you.

It is possible to get the UUID of the changeset from the eclipse client, which can be used in the CLI and can be shared with other users. If you right-click on a change set and choose "Copy URL." the UUID is embedded in the URL:

https://myserver.com/jazz/resource/itemOid/com.ibm.team.scm.ChangeSet/_-3RNwTLbEeKDmkFKbghdVw?Workspace=_76GasHWUEgC_zbA6bI4YEA

This UUID can be pasted into a CLI command in any place where an ID is used.

I am not aware of a single command that can extract the contents of all files in a change set but I believe it could be scripted using a combination of the following commands:
lscm list changes <changeset ID/UUID>
lscm list states <changeset ID/UUID> <item ID of file from list changes>
lscm extract file <item ID of file> <state from list states> <output_file_to_dump_contents>
Yohko Tanaka selected this answer as the correct answer

2 votes


One other answer

Permanent link
Hi Chris,
Thank you for the quick reply.
I didn't know that changeset ID is generated on-demand, and I understand that I need to use uuid for this purpose.
I also thank you for the scripting idea, this is a great help.

Thank you.

0 votes

Comments

Hi Yohko, if you liked this answer can you click the "thumb up" button on it?

Thanks,
Chris

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
× 12,015

Question asked: Nov 20 '12, 8:43 p.m.

Question was seen: 4,717 times

Last updated: Nov 29 '12, 2:48 p.m.

Confirmation Cancel Confirm