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

Is it possible to download all history versions of a specific file in one step ?

I have a file in RTC source control with more than 100 versions and now I'm searching for a way to download all versions in one step.

Is it possible ?

1 vote

Comments

But what would you do with 100 files of the same name? 

If you mark the "history" files in the eclipse client and select "Open File" then you can save file by file and they have "different" names - file name + "internal id".

But it doesn't help to save these files without their change comment.

My customer wants to compare the files before a change request - after a change request.



One answer

Permanent link
You can use the scm cli to do these kind of operations.
If you have the item id and state/version id's then you can use the 'scm get file <item id> <state or version id> <path on disk>'
If you do not have the item information you can fetch the history that shows the item id and state id/version id by using the 'scm -u y history -w <workspace or stream name/uuid> -C <component name/uuid> -R <path relative to the component>'

Also take a look at 'scm get change' which downloads a specific change from the change set.

1 vote

Comments

Is it possible to include the change comment into the download ?

This history command shows the change set comment in the output. You also use the --json option to get the output in json format.

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,023
× 1,203
× 67

Question asked: Dec 03 '14, 9:51 a.m.

Question was seen: 4,632 times

Last updated: Dec 04 '14, 4:04 a.m.

Confirmation Cancel Confirm