Perforce - 还原另一个用户在我的本地工作区中打开的文件

Perforce - revert files opened by another user in my local workspace

我的本地工作区中有一个文件被另一个用户设置为编辑模式。虽然工作空间使用时间较长,但由于打开了文件,我无法删除它。

当我尝试还原文件时,这是错误消息:

jon@machine1% p4 opened ...
//depot/proj/mountain/module/moduleA.c#2 - edit default change (text) by lily@jon+mountain+22
jon@machine1% p4 revert moduleA.c
//depot/proj/mountain/module/moduleA.c#2 - belongs to user lily, not reverted

有什么方法可以删除这个文件吗?我使用的版本控制是 Perforce

正如 Bryan Pendleton 所提到的,使用它就可以了。

p4 -u lily revert moduleA.c