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.
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.
Accepted answer
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>
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>