Stan
Stan

Reputation: 38255

Perforce p4v to share same changelist

I have 2 p4v set up on Windows and Linux. I was wondering if I can edit the code on Windows, create a pending changelist (this changelist belongs to a p4_windows_client). Then switch to Linux, which opens another p4_linux_client, to merge Windows pending changelist in order to build the project on Linux. The reason to have 2 different client {p4_windows_client, p4_linux_client} is because the root folder path issue as one is like C:\p4clientRoot, another is /home/p4client-root. I was wondering if this is possible?

I tested it, it seems like upon creating a pending changelist, the server will get that new changelist with only basic info, like change number, description, files being checked out. But it doesn't include the changes in the code being made on Windows box. So I feel it's unlikely to send over the change to Linux through this way.

Upvotes: 3

Views: 3892

Answers (2)

Dennis
Dennis

Reputation: 20561

You cannot change the owner of the pending changelist changelist, however you can shelve the changelist in from first workspace and then unshelve it in the second workspace.

For more information check the Perforce Manual for the p4 shelve command and p4 unshelve command.

Upvotes: 8

aflat
aflat

Reputation: 4329

The best way I have done dual development on windows and linux is to make 1 workspace, and use the "alt roots" line in your workspace. I make both my windows machine, and linux machine access the same share/drive. If it's dual boot, make a fat32 partition so both OS's can access the same drive, if they are 2 separate machines, create a network share on the machine you use most often, or on some network machine somewhere. Then make root and alt roots point to the same folder/share.

You also need to make sure that you blank out the Host line of the workspace so it can be used in both locations.

Now you can check out, edit, switch machines, and submit on the other machine.

Upvotes: 1

Related Questions