how to revert to particular file version
2 answers
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
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.
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:
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