[p4] Reverting files for another user?
Rick Macdonald
rickmacd at shaw.ca
Mon Jan 18 17:37:47 PST 2010
Thanks everyone! I could have sworn I did this years ago but recently I
couldn't get it to work. I think by luck I used the YES syntax years ago
but this time hit upon the NO syntax. I knew the revert needed all those
args off the top of my head, but I didn't realize the login trick!
Thanks!
Rick
Matt Janulewicz wrote:
> As an admin you can log in as them without a password, but the
> important thing is your syntax:
>
> NO: p4 -u someuser login
> YES: p4 login someuser
>
> With the latter it shouldn't prompt for a password and should create a
> ticket.
>
> Then the revert is a little tricky, you have to specify everything on
> the commandline:
>
> p4 -u <user> -c <client> -H <host> revert -k <file(s)>
>
> Just to keep my tickets listing kind of short, I log out after I'm
> done, which goes back to the original syntax:
>
> p4 -u someuser logout
>
> This may not work on older servers, especially ones that were out
> prior to ticketed authentication, of course.
>
>
> -Matt
>
>
> On 01/18/2010 04:52 PM, Rick Macdonald wrote:
>>
>> Even as a user with "super" permissions, I cannot seen to revert files
>> for another user unless I know their password. The only way I know of is
>> to delete the clientspec of the open file. Is there some trick I have
>> missed?
>>
>> Rick
>> _______________________________________________
>> 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