perforce - Perforce:删除带有空更改列表的 p4 客户端
问题描述
可以删除包含空更改列表的 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
推荐阅读
- python - 为什么我会得到 AttributeError:“NoneType”对象没有属性“值”?
- sql-server - 带通配符的临时表
- javascript - 如果单击,则停用切换功能
- rest - REST 服务返回 XML 文档的集合
- vuejs2 - Nativescript Vue:访问类函数
- python - 如何使 tkinter 按钮运行另一个 python 文件
- php - 使用 PHP 替换 WordPress 插件图标
- android - 使用单一活动应用程序的 AccountAuthentication
- html - 下载图像时显示加载背景颜色响应
- docker - 构建平台即服务