How to Sync the Perforce Client to a Particular Change List Using P4 Sync Command

let us assume depot contains change lists :

change lists : 300 299 280 270 260

I would like to sync my client at change list 280.

if i do p4 sync : my client will be updated with cl : 300 (latest one) which i'm not looking for.

How can we achieve this ?

0

2 Answers

Perforce uses "@" to indicate change number, so

p4 sync @280
4

p4 sync ...@280

Accepted answer didn't work for me

To check latest synced CL: p4 changes -m1 //...#have

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest