[p4] Remotely reverting a file?
Vaden, Paul
pvaden at midway.com
Mon Feb 13 07:31:17 PST 2006
Sorry for not giving the complete description. Yes, we have several
folders in the depot that are +l, this being one of them.
I wasn't aware that you could login to the user's account from a
superuser login, which makes total sense. That was the missing link I
was looking for.
Thanks to all who answered.
-V
-----Original Message-----
From: Russell C. Jackson [mailto:rusty at rcjacksonconsulting.com]
Sent: Friday, February 10, 2006 6:57 PM
To: 'Matthew Janulewicz'; 'Zarnes, Todd'; Vaden, Paul
Cc: perforce-user at perforce.com
Subject: RE: [p4] Remotely reverting a file?
No, you are not missing anything unless the file has the +l (exclusive
open)
type modifier on it, but that wasn't what he asked. I was just answering
his
question.
Also, when he does the revert as I described, he isn't reverting on the
users machine, so he isn't throwing the changes the user has made, just
undoing the edit. The developer can simply open the file for edit when
he
gets back from vacation, resolve, and submit.
Thanks,
Rusty
--------------------------------------------------------
RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
--------------------------------------------------------
Russell C. Jackson
211 River Oaks Lane
Russellville, AR 72802
--------------------------------------------------------
rusty at rcjacksonconsulting.com
http://www.rcjacksonconsulting.com
tel: 479-696-9710
fax: 479-967-2308
mobile: 479-747-3845
--------------------------------------------------------
-----Original Message-----
From: Matthew Janulewicz [mailto:MJanulewicz at greendotcorp.com]
Sent: Friday, February 10, 2006 6:43 PM
To: Zarnes, Todd; Russell C. Jackson; Vaden, Paul
Cc: perforce-user at perforce.com
Subject: RE: [p4] Remotely reverting a file?
I might be misunderstanding the question, but reverting one file and
reverting all the files by deleting the client seems equally intrusive
to
me. Without being able to log in and diff, who knows what changes you're
losing by reverting a file belonging to someone that's not at work?
Seems
like a bad thing either way you cut it.
It's been a year since I've used Perforce, but I'm recently back in the
game. So forgive me if this sounds like a dumb question, but why can't
the
second developer check out the file ...? Anyone should be able to check
out
any file they want from as many different clients as they want, all at
the
same time. Even if the file is locked by the original user, anyone can
check
it out. They just can't submit it. In which case you want to unlock the
file, not revert it. Your vacationing developer will have to do a merge
when
he gets back to bring his version up to date with the intervening
changes,
but that's what Perforce is for.
Am I completely missing something?
-Matt
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Zarnes, Todd
Sent: Friday, February 10, 2006 10:23 AM
To: Russell C. Jackson; 'Vaden, Paul'
Cc: perforce-user at perforce.com
Subject: Re: [p4] Remotely reverting a file?
Rusty,
Anyway to bypass having to be logged onto the users host computer before
performing these actions? I run then steps you outlined below and I
get:
"Client 'RogerXP' can only be used from host 'bldl0111111'."
Todd Zarnes
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Russell C.
Jackson
Sent: Thursday, February 09, 2006 9:39 PM
To: 'Vaden, Paul'
Cc: perforce-user at perforce.com
Subject: Re: [p4] Remotely reverting a file?
If you use the p4 login command to login in as a super user first, you
can
then run the p4 login <user> command to create a login ticket for that
user
without knowing their password. The server will not prompt for the
password
since you already have a login ticket as the super user.
After that, you can set P4USER=<the users id>, set P4CLIENT=<the users
client>, then run p4 revert on the file.
Thanks,
Rusty
--------------------------------------------------------
RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
--------------------------------------------------------
Russell C. Jackson
211 River Oaks Lane
Russellville, AR 72802
--------------------------------------------------------
rusty at 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-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Vaden, Paul
Sent: Thursday, February 09, 2006 12:34 PM
Cc: perforce-user at perforce.com
Subject: [p4] Remotely reverting a file?
Is there an easy admin command that will revert a file without having to
delete the user's clientspec or invade their local machine?
For example, an engineer checks out a file and doesn't check it back in
before going on vacation. Another engineer needs to work on that file
and
asks me as the SuperUser to revert it. Is there a way for me to do this
with
out 1) Changing users password and logging into his machine and
reverting
via the client, or 2) Deleting his clientspec, thus reverting all files
he
has checked out.
Both of those options seem really obtrusive. I've looked through the
docs
and don't see an alternative.
-V
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list