首页 > 解决方案 > Perforce:删除带有空更改列表的 p4 客户端

问题描述

可以删除包含空更改列表的 P4 工作区吗?

换句话说,更改列表是否也会从服务器中删除?

标签: perforce

解决方案


试试看:

C:\Perforce\test>p4 -c subressors-computer change
Change 164 created.

C:\Perforce\test>p4 client -d subressors-computer
Client 'subressors-computer' has pending changes. To delete the client, delete any pending changes first. An administrator may specify -f to force the delete of another user's client.

C:\Perforce\test>p4 client -d -f subressors-computer
Client subressors-computer deleted.

C:\Perforce\test>p4 describe 164
164 - no such changelist.

您需要admin获得许可才能使用该-f标志。如果您不是管理员,则需要在删除客户端之前自己删除更改列表。这很容易编写脚本:

p4 -Ztag -F "change -d %change%" changes -s pending --me | p4 -x - run

推荐阅读