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

how to revert to particular file version

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

0 votes



2 answers

Permanent link
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.

1 vote

Comments

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.

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
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

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 27 '11, 1:26 p.m.

Question was seen: 4,271 times

Last updated: Mar 04 '15, 3:58 p.m.

Confirmation Cancel Confirm