3

我在 Windows 和 Linux 上设置了 2 个 p4v。我想知道我是否可以在 Windows 上编辑代码,创建一个挂起的更改列表(这个更改列表属于 a p4_windows_client)。然后切换到 Linux,这会打开另一个p4_linux_client,以合并 Windows 挂起的更改列表,以便在 Linux 上构建项目。有 2 个不同客户端 { p4_windows_client, p4_linux_client} 的原因是因为根文件夹路径问题,一个是C:\p4clientRoot,另一个是/home/p4client-root。我想知道这是否可能?

我对其进行了测试,似乎在创建待处理的更改列表时,服务器将获得仅包含基本信息的新更改列表,例如更改编号、描述、正在签出的文件。但它不包括在 Windows 框中所做的代码更改。所以我觉得不太可能通过这种方式将更改发送到 Linux。

4

2 回答 2

9

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.

于 2012-03-09T09:55:31.680 回答
1

我在 Windows 和 linux 上进行双重开发的最好方法是创建 1 个工作区,并在工作区中使用“alt root”行。我让我的 Windows 机器和 linux 机器访问相同的共享/驱动器。如果是双启动,则创建一个 fat32 分区,以便两个操作系统都可以访问同一个驱动器,如果它们是 2 台独立的机器,请在您最常用的机器上或某处的某个网络机器上创建一个网络共享。然后让 root 和 alt 根指向同一个文件夹/共享。

您还需要确保将工作区的主机行清空,以便它可以在两个位置使用。

现在您可以在另一台机器上签出、编辑、切换机器和提交。

于 2012-03-09T14:23:04.790 回答