It's all about the answers!

Ask a question

RTC command line get specific file remote-path


Michael Ron (307) | asked Oct 16 '17, 6:24 a.m.

Hello,

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

Accepted answer


permanent link
Shashikant Padur (4.2k27) | answered Oct 18 '17, 11:52 p.m.
JAZZ DEVELOPER
edited Oct 18 '17, 11:56 p.m.

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

Your answer


Register or 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.