Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to sync the perforce client to a particular change list using p4 sync command

Tags:

perforce

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 ?

like image 964
taj Avatar asked Sep 13 '25 08:09

taj


2 Answers

Perforce uses "@" to indicate change number, so

p4 sync @280
like image 185
Eric Miller Avatar answered Sep 16 '25 06:09

Eric Miller


p4 sync ...@280

Accepted answer didn't work for me

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

like image 44
Arghnews Avatar answered Sep 16 '25 06:09

Arghnews