Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Step by step guide on PerforceDFiles Tool | Perforce Tutorial

Step-by-Step Guide on PerforceDFiles Tool PerforceDFiles is a diagnostic tool used in Perforce Helix Core (P4) to list, analyze, and delete orphaned or corrupted files from the…

Read More

Ruby and Perl Script to find all Perforce users who have not set passwords

These scripts will:✅ Connect to the Perforce server✅ Retrieve a list of users✅ Identify users without passwords 1. Prerequisites Before running the scripts, ensure:✔ Perforce CLI (p4)…

Read More

Ruby and Perl Scripts to List Perforce Clients in Descending Access Date Order

These scripts will:✅ Connect to the Perforce server✅ Retrieve a list of clients (workspaces)✅ Sort them by last access date (descending order) 1. Prerequisites Before running the…

Read More

The P4Win Window Navigation Guide in Perforce

P4Win Window Navigation Guide P4Win (Perforce for Windows) has a classic Windows-style interface, making it easy to navigate for developers familiar with GUI-based version control. This guide…

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