Using command line (scm) how do I revert to a previous file version in the sandbox?
![]()
What's the best way of loading an older file version (reverting) using scm.
Thanks, |
One answer
![]()
Shashikant Padur (4.3k●2●7)
| answered Mar 03 '15, 9:58 p.m.
JAZZ DEVELOPER edited Mar 03 '15, 10:00 p.m.
1) list the history of the file 'lscm -u y show history <filepath>'.
2) Figure out the change set from which the change has to be downloaded and run 'lscm -u y list change <changeset uuid/alias>'.
3) Run 'lscm get change <changeset uuid> <item id> <path-to-download>'. You could also use 'lscm get file'
In 502, 'lscm get file' accepts version id (although it still accepts state id).
Comments Thanks for the reply. When trying to load an older version of the file into the sandbox I get the following error:
I didn't think that 'get file' and 'get change' would bother about where the file is being downloaded because it does not update any metadata (but I might be wrong).
|
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.