Perforce:删除具有空更改列表的 p4 客户端

Perforce: deleting a p4 client with an empty changelist

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

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

试试看:

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