Welcome, Guest
Username Password: Remember me

Reverting Another User's Files
(1 viewing) (1) Guest
Perforce
  • Page:
  • 1

TOPIC: Reverting Another User's Files

Reverting Another User's Files 1 year, 4 months ago #557

  • scmuser
  • OFFLINE
  • Gold Boarder
  • scm master
  • Posts: 237
  • Points: 3427
  • Karma: 0
  • Honor Medal 2009
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?

Re: Reverting Another User's Files 1 year, 4 months ago #558

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44559
  • Karma: 4
  • Honor Medal 2009
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
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re: Reverting Another User's Files 11 months, 1 week ago #656

  • alwaysharsha
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Points: 28
  • Karma: 0
You can reopen those files in to your client using 'p4 reopen', then revert the files.
  • Page:
  • 1
Time to create page: 0.76 seconds

     
    
Home Forum