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

Is there an "scm get file" equivalent for symbolic links?

I'm processing changes in a change set in a python script.  I have each change's UUID and state ID.  For a file add change, I run the scm get file command to get the file from RTC.  I need to handle symbolic link add  changes in my script.  How can I do that?  I tried running scm get file on the symbolic link change's UUID and state id as I do for a file add change:

lscm get file -r ** _Y13CoJp9EeqXF4arUMsnAw _2TH005sgEeq-JOzIQciwww "*"

The scm get file command fails with exit code 30 and the following message:

Invalid item _Y13CoJp9EeqXF4arUMsnAw. Specify a valid FileItem.

So the scm get file command doesn't look to work for symbolic links.  Is there an scm command to a get symbolic link based on the symbolic link's UUID and state ID?

0 votes



One answer

Permanent link

I think there might be a problem with the "get file" command. Can you try using "get change" command? since anyway you are processing the change from the change set.

-1 votes

Comments

The scm get change completes successfully and downloads the specified symbolic link.  However, instead of creating a symbolic link, it creates a text file containing the symbolic link's target.  I would have expected (and need) scm get change to instead create a symbolic link.  I'm running

c:\>scm --version
Build Id: RTC-CLIENT-I20190326-1753
Version: 6.0.6.1

on Windows 10 with symbolic link creation enabled. 


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,936

Question asked: Oct 28 '20, 5:30 p.m.

Question was seen: 1,382 times

Last updated: Nov 06 '20, 12:38 a.m.

Confirmation Cancel Confirm