Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

P4 Root and Altroot across Windows and Linux

Tags:

git

perforce

p4v

I have a P4 client that I share across both Linux and Windows environment, using the 'Root' (Linux) and 'Altroot' parameters within the client spec ('Host' is removed). Does anyone know if it is possible to configure P4 to mirror the directories across the two platforms? What I mean is, if I check out a file and make edits within my Linux workspace, can I somehow configure P4 to update the workspace on my Windows box to have the same file opened and edited before the file is checked into the repository? I don't think this is possible, but I'm asking just in case someone knows of a way.

edit: Is it possible to do this with Git? All source is stored in a P4 repo in work, but I could setup a local Git repo if this is possible?

Thanks.

like image 825
MeanwhileInHell Avatar asked Apr 27 '11 10:04

MeanwhileInHell


1 Answers

A single perforce clientspec is supposed to only refer to a single copy of the files.

You should share the files from your Linux machine to your Windows machine, or visa-versa, then when they are open for edit, they could be edited from either side.

You could create two separate client-specs, and use shelving to move files between them, or create your own branch, that the two clients share, and then checkin to that branch, and merge to your current codeline once you've completed the work.

like image 74
Douglas Leeder Avatar answered Oct 08 '22 06:10

Douglas Leeder