Jon J
Jon J

Reputation: 445

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

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

Upvotes: 2

Views: 1284

Answers (1)

Jon J
Jon J

Reputation: 445

As Bryan Pendleton has mentioned, using this does the trick.

p4 -u lily revert moduleA.c

Upvotes: 1

Related Questions