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

RTC command line get specific file remote-path

Hello,

How in RTC command line can I receive specific file remote path or UUID on base of local file path?

0 votes


Accepted answer

Permanent link

One way to do that is to fetch the history of the file. You also need to specify "-u y" option to display the uuid of the file. In the below sample, _UISoYIYiEeaCie-ltHo_5g is the itemID (which you are looking for) and _bHSxZR9uEee39vJ_eaUNlA is the stateID which is the current state of the file.

Note that we are fetching only the last item in the history by specifying the max option: '-m 1'
----------------
$ lscm -u y show history Program.cs -m 1 -v
Change sets:
  (5316:_au7UsB9uEee39vJ_eaUNlA) ----$ Shashikant Padur "added an user property 'test'" 12-Apr-2017 04:25 PM
    Changes:
      ----p (_UISoYIYiEeaCie-ltHo_5g:_bHSxZR9uEee39vJ_eaUNlA) /Hello/WindowsFormsApplication1/WindowsFormsApplication1/Program.cs
There is additional history available before this point.
---------------

If you are parsing the output then specify the -j/--json option to the command which will output in json format: lscm show history Program.cs -m 1 -v -j

Michael Ron selected this answer as the correct answer

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

Question asked: Oct 16 '17, 6:24 a.m.

Question was seen: 1,221 times

Last updated: Oct 18 '17, 11:56 p.m.

Confirmation Cancel Confirm