Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sync to specific folder using command line in Perforce

Tags:

perforce

p4v

Suppose I have mapped my depot to client workspace as c:/perforce/project but now

I want to sync all the files present in c:/perforce/project/fold1/fold2 folder.

How can we do it, as the command p4 sync takes only file names and not folder.

like image 615
Aman Avatar asked Jun 21 '16 11:06

Aman


1 Answers

Say the depot path is //depot/project/...

From the command line, do p4 sync //depot/project/fold1/fold2/...

(the "..." tells Perforce you want that folder and everything under it).

From P4V, right-click on the folder and choose "Get Latest Revision". It will only pull in the folder and everything underneath it.

like image 65
tkosinski Avatar answered Oct 14 '22 07:10

tkosinski