[p4] Uncheckout other user‘s file?
[p4] Uncheckout other user's file?
https://perforce-user.perforce.narkive.com/fbzrtGh1/p4-uncheckout-other-user-s-file
perforce-user@perforce.com
Discussion:
[p4] Uncheckout other user's file?
(too old to reply)
Jeff Jensen
15 years ago
Permalink
Hi,
I've been hunting for this answer for an hour, and just can't determine how to
do so. How can I revert another user's checkout, as an admin? Just one of the
many files in the other user's default changelist.
<gasp>feeling dumb about asking....</gasp>
Jeff Grills
15 years ago
Permalink
You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.
j
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?
Hi,
I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
Read More
Jeff Jensen
15 years ago
Permalink
Thanks for the fast reply!
I just found the solution:
1) I changed the other user's workspace's host field to nothing (to allow me to
use it from my machine).
2) I used the -c on p4 command to specify to use the other user's workspace
along with the revert command:
p4 -c otherworkspacename revert //thefilename
:-)
...
William Yan
15 years ago
Permalink
it works only if the client is not locked.
-William
...
William Yan
15 years ago
Permalink
it works only if the client is not locked, which is default client setting.
-William
...
Jeff Grills
15 years ago
Permalink
Ah, that makes sense. You really don't need to be that user, you just have
to use the right client.
j
-----Original Message-----
From: Jeff Jensen [mailto:***@upstairstechnology.com]
Sent: Thursday, December 01, 2005 6:44 PM
To: Jeff Grills
Cc: perforce-***@perforce.com
Subject: RE: [p4] Uncheckout other user's file?
Thanks for the fast reply!
I just found the solution:
1) I changed the other user's workspace's host field to nothing (to allow me
to use it from my machine).
2) I used the -c on p4 command to specify to use the other user's workspace
along with the revert command:
p4 -c otherworkspacename revert //thefilename
:-)
...
Tetlow, Gordon
15 years ago
Permalink
If you are running a recent server, super users can login as other
users, so you could do something like:
$ p4 login luser
$ p4 -u luser -H hostname -c clientname revert //clientname/...
$ p4 -u luser logout
-gordon
...
Wright, Richard
15 years ago
Permalink
Of course, depending on one's needs, the other way is to simply delete the
user's client spec.
This is my preferred method for reverting files of users who have left the
company, but probably not ideal for other situations.
-Rick
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com]On Behalf Of Jeff Grills
Sent: Thursday, December 01, 2005 4:21 PM
To: 'Jeff Jensen'; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?
You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.
j
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?
Hi,
I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
David Siefert
15 years ago
Permalink
You can revert all files on another users checkout by deleting their client spec (p4 client -d -f <clientspec>).
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com]On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 7:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?
Hi,
I've been hunting for this answer for an hour, and just can't determine how to
do so. How can I revert another user's checkout, as an admin? Just one of the
many files in the other user's default changelist.
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005
Russell C. Jackson
15 years ago
Permalink
If you use the login command under your own account, you can then use login
to login as another user, and it will do so since you are the super user,
and will not ask for their password.
So, you would do something like this:
p4 login
Enter your password.
p4 login username
Set P4USER=username
Run commands as username
Thanks,
Rusty
--------------------------------------------------------
RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
--------------------------------------------------------
Russell C. Jackson
211 River Oaks Lane
Russellville, AR 72802
--------------------------------------------------------
***@rcjacksonconsulting.com
http://public.perforce.com/guest/russell_jackson/pcp.html
tel: 479-696-9710
fax: 479-967-2308
mobile: 479-747-3845
--------------------------------------------------------
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Grills
Sent: Thursday, December 01, 2005 6:21 PM
To: 'Jeff Jensen'; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?
You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.
j
-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?
Hi,
I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
Jeff Jensen
15 years ago
Permalink
True, and then using "-f" to change the other user's workspace would solve
that problem, as an admin.
-----Original Message-----
From: William Yan [mailto:***@gmail.com]
Sent: Friday, December 02, 2005 12:35 AM
To: Jeff Jensen
Cc: Jeff Grills; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?
it works only if the client is not locked, which is default client setting.
-William
...
changelist.
Post by Jeff Jensen
Post by Jeff Grills
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Albrecht, Matt
15 years ago
Permalink
Another small caveat with this that I stumbled upon. If that other
user's client has the root directory set to a read-only or non-existent
location, the revert will fail.
That is, my Windows machine has only C: as a hard drive, and D: as the
CD-ROM. I was trying to revert a client's file which had the root dir
setup to D:\workspace, and the revert couldn't happen. I ended up doing
this:
$ p4 client -o usersClient > usersClient.spec
$ p4 client -f usersClient
(change the root dir)
$ p4 revert (all the wonderful options for looking like the other
user) //filespec
$ p4 client -f -i < usersClient.spec
I have no idea what behavior you'll see if the other client is on a
different platform than your own (Windows vs. Unix vs. Mac)
...
Continue reading on narkive:
SEARCH RESULTS FOR '[P4] UNCHECKOUT OTHER USER'S FILE?' (NEWSGROUPS AND MAILING LISTS)
120
replies[p4] Perforce vs. Clear Case
started 20 years ago
perforce-user@perforce.com
26
repliesGetting started with a content filter
started 10 years ago