Perforce - revert files opened by another user in my local workspace
2
I have a file in my local workspace that is set to an edit mode by another user. Although the workspace is longer in use, I am unable to delete it due to the opened file.
When I tried to revert the file, this is the error message:
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
Is there a way I can delete this file? Revision control I'm using is Perforce
Follow
asked Jan 24 '20 at 2:46
34511 silver badge1010 bronze badges
-
Does
p4 -u lily revert moduleA.c
work? – Bryan Pendleton Jan 24 '20 at 18:36 -
Tried this again, it does work. Thank you. – Jon J Jan 29 '20 at 1:33
1 Answer
1
As Bryan Pendleton has mentioned, using this does the trick.
p4 -u lily revert moduleA.c
Follow