taj
taj

Reputation: 305

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 ?

Upvotes: 24

Views: 58836

Answers (2)

Arghnews
Arghnews

Reputation: 124

p4 sync ...@280

Accepted answer didn't work for me

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

Upvotes: 1

Eric Miller
Eric Miller

Reputation: 2031

Perforce uses "@" to indicate change number, so

p4 sync @280

Upvotes: 36

Related Questions