It's all about the answers!

Ask a question

how to revert to particular file version


mehul Prajapati (18125254) | asked Oct 27 '11, 1:26 p.m.
Hi,

is there a way we can revert to a particular file version?

example x.txt has 10 versions , i need 7th version of a this file in my workspace how can i do that ?

Thanks

2 answers



permanent link
Christopher Ricci (9815) | answered Nov 21 '11, 6:47 p.m.
One way:
In the Eclipse client:
- Right click on that file in the package or project explorer, and
select "show -> history"
- In the history view, right click on the version you want, and select
"open file"
- copy the content of that file version, and paste it into the workspace
file
- checkin the result.

Cheers,
Geoff

On 10/27/2011 1:38 PM, mehulnp wrote:
Hi,

is there a way we can revert to a particular file version?

example x.txt has 10 versions , i need 7th version of a this file in
my workspace how can i do that ?

Thanks


Another method is to right click on the version you want and select 'Load'. This will create a new change set in pending changes, bringing the selected version back into your workspace.

Comments
Stephen Rooks commented Mar 02 '15, 4:48 p.m.

Is it possible to perform this load via the command line (scm.exe). When I try, I get the following error:
C:\Workspaces\Shell3>lscm load -r RTC -f Shell3 M3/simprjts/script1.m
  /simprjts
Problem running 'load':
Load could not complete due to collisions. Choose a different destination for the load.


Evan Hughes commented Mar 04 '15, 3:58 p.m.
JAZZ DEVELOPER

The equivalent CLI subcommand is 'lscm get file'. 


You need some way to find the state that you want to extract. Use 'lscm show history' to get a listing of versions. 


permanent link
Geoffrey Clemm (30.1k23035) | answered Oct 27 '11, 3:31 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
One way:
In the Eclipse client:
- Right click on that file in the package or project explorer, and
select "show -> history"
- In the history view, right click on the version you want, and select
"open file"
- copy the content of that file version, and paste it into the workspace
file
- checkin the result.

Cheers,
Geoff

On 10/27/2011 1:38 PM, mehulnp wrote:
Hi,

is there a way we can revert to a particular file version?

example x.txt has 10 versions , i need 7th version of a this file in
my workspace how can i do that ?

Thanks

Your answer


Register or to post your answer.