betweenGo

HOWTO Rollback to Previous Version

by on Jul.13, 2007, under Perforce

Perforce has great tech notes and one of them is Perforce Reverting Submitted Changelists.

Here is how one rolls back to version N-1 .

> p4 sync …@N-1

> p4 add deleted_file
> p4 edit foo bar baz

> p4 sync …@N

> p4 resolve -ay

> p4 sync …

> p4 resolve

> p4 delete added_file

> p4 submit …

You can also do a simple rollback of a file like in this example.

> p4 sync foo#7

> p4 edit foo

> p4 sync …

> p4 resolve -ay

> p4 submit …


Share

Related posts:

  1. Perforce Merging
  2. Perforce Review
  3. Shell Scripts with Windows LF’s Fail in Latest Cygwin
  4. Perforce Branching
  5. Perforce Tips

:

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!