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

taj picture taj · Oct 2, 2013 · Viewed 22k times · Source

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 ?

Answer

Eric Miller picture Eric Miller · Oct 2, 2013

Perforce uses "@" to indicate change number, so

p4 sync @280