Friday, August 10, 2012

How to revert a perforce changelist (CL) in Linux

Unless you have the UI for perforce where you can use p4v, there are a set of steps you  need to follow to backout changes from perforce.

To backout the most recent CL (say CL100):


  1. p4 sync @99
  2. p4 edit //depot/foo.txt //depot/bar.txt //depot/ola.txt
  3. p4 sync
  4. p4 resolve -ay
  5. p4 submit

sync will take the repo to an older version (before the cl). Edit will open your file to be reverted. sync will bring the rest of the view to the CL after 99. Resolve and submit will cause you to go back to the old state. Remember to "accept yours" during the resolve stage.

Detailed instructions on backing out changes in other scenarios is listed here.



1 comments:

Anonymous said...

Ѕo, what preciselу is Aurаwаve in any cаsе, аnd ѕince then, the resultѕ are huge when it comеѕ to
nuisance stand-in has ѕеverаl advantages.


Heгe is my web page; Aurawavereview.com
my web site - aurawave

Post a Comment