Search code examples
perforcep4v

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.


Solution

  • 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.