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

LSCM and extracting a file

Hi,

Can I use LSCM to extract a before-version of a file?

I can get a diff using this method:

lscm diff -p -w STREAMNAME -r SVR changeset CHANGESETUUID

But in order to see the "before" and "after" file I need to be able to extract the file either in its before state or its after state (and then I can use the patch to infer the other state).

Does anyone know how to do this with LSCM, please?

0 votes



One answer

Permanent link
Checkout lscm changeset extract.  You need to have a workspace and the path to the file element that you want to extract.  E.g.:

# get your changeset alias
lscm ls changesets
# list the full paths of the files in the change you want to extract
lscm ls changes 1111
# extract them one at a time -- note: you need to provide the FULL OUTPUT path
# to include the filename.
lscm changeset extract 1111 /component/path/to/the/desire/file.txt /local/file/path.txt
Checkout the options, you can also specify which workspace to pull the files from.  I'm not sure if you can pull them directly from a stream, that would be useful but I haven't tried.

0 votes

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
× 10,950

Question asked: May 14 '12, 8:00 p.m.

Question was seen: 5,532 times

Last updated: Mar 12 '14, 2:29 p.m.

Confirmation Cancel Confirm