[p4] Reverting/Restoring older revision

Devender Bejju devender.bejju at valuelabs.net
Sun Mar 25 23:39:12 PST 2007


Hi,

 

I was looking for a easier and faster way of reverting a file to an older
revision. This is what I am currently doing

 

1.	Get Revision (desired older revision)
2.	Copy the file to different location (backup)
3.	Remove read-only attrib 
4.	Get Latest Revision
5.	Open for edit (check-out)
6.	Replace the file with the file copied in step 1 and 2
7.	Submit (Check-in)

 

I can achieve it other way also

 

1.	Open older revision file by double clicking on the revision history
pane
2.	Copy entire text
3.	Get Latest Revision
4.	Open for edit (check-out)
5.	Open file and paste
6.	Submit (Check-in)

 

And the other way

 

1.	Get Revision (desired older revision)
2.	Open for edit (check-out), it will ask weather to "Synch and Edit"
or "Edit Current"
3.	Click "Edit Current"
4.	In Pending change list pane, right click resolve-auto
resolve->accept yours
5.	Submit (Check-in)

 

I feel the 3rd method is short and I currently adopted this method but it
works only in p4win not in other versions (p4v)

 

Any body knows easier way

 

 

Thanks,

Devender



More information about the perforce-user mailing list