Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started 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.

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x