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 "*"
Invalid item _Y13CoJp9EeqXF4arUMsnAw. Specify a valid FileItem.
One answer
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.
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.
I have raised the following defect: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=520543