Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Reverting Another User’s Files

scmuser created the topic: Reverting Another User’s Files
Could you please help me with following…

How do I revert files opened in another user’s client workspace?
How do I revert files for a user or client that no longer exists?

rajeshkumar replied the topic: Re: Reverting Another User’s Files
There are two ways to revert files opened in a Perforce client workspace not owned by you. The first method can be done with an account with Perforce admin or super privileges while the second method can only be done by an account with Perforce super privilege.

The simplest solution is to delete the client workspace containing the opened files. For example, if p4 opened shows:
//depot/main/www/training/index.html#8
– edit default change (txt) by bruno@bruno_workspace

the “bruno_workspace” client workspace can be deleted with:
p4 client -d -f bruno_workspace

You might want to revert a file without deleting the client workspace. In that case, you can impersonate the user that owns the client workspace and then run the p4 revert command. For example:
p4 login user
p4 -u user -c client -H host revert -k file

where file is the file you want to revert, user is the user who has the file open, client is the client workspace where the file is opened, and host is the host name associated with that client workspace.

Link; kb.perforce.com/article/38/reverting-another-users-files
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

alwaysharsha replied the topic: Re: Reverting Another User’s Files
You can reopen those files in to your client using ‘p4 reopen’, then revert the files.

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x