8 messages in com.perforce.perforce-user[p4] Changelist Trickiness
FromSent OnAttachments
Rus Maxham07 Feb 2003 11:55 
Rus Maxham07 Feb 2003 14:59 
Rus Maxham07 Feb 2003 15:32 
Todd Short10 Feb 2003 07:04 
Rus Maxham10 Feb 2003 13:03 
Todd Short10 Feb 2003 13:25 
Jason Williams10 Feb 2003 14:12 
Rus Maxham10 Feb 2003 14:44 
Subject:[p4] Changelist Trickiness
From:Rus Maxham (rus.@foveon.com)
Date:02/10/2003 02:44:18 PM
List:com.perforce.perforce-user

Wild. This does work IF: the client is specified with the -c option AND the host corresponding to the client is specified using the -H option, otherwise p4 spews:

Client 'otherclient' can only be used from host 'otherhost'.

so just to recap:

----------------------------------------------- % p4 -c otherclient -H otherhost change -i -f Change: new Client: otherclient User: otheruser Status: new Description: Autogenerated comment here. ^Z Change # created.

%

-----------------------------------------------

The key thing above is to read the desired clientspec, extract the hostname (if any), and then specify that hostname on the p4 command line with the '-H' option. At this point, p4 doesn't seem to care that the user is different than the one it was invoked with.

Boy. That was tedious. Thanks for all of the assistance, P4 users!

rus

-----Original Message----- From: Jason Williams [mailto:streak at narus.com] Sent: Monday, February 10, 2003 2:13 PM To: tshort at cisco.com Cc: Rus Maxham; perforce-user at perforce.com Subject: Re: [p4] Changelist Trickiness

Todd Short wrote:

You need to specify THEIR username and client name. Not yours. It appears that you want to do the following:

$ p4 -u otheruser -c otherclient change -i -f Change: new Client: otherclient User: otheruser Status: new Description: Autogenerated comment here. Files: //depot/what/ever/file/should/be/here # edit ^D

However, if "otheruser" has a password, you will also need that tidbit of info. I even got rid of the -c and -u options and it worked.

I just tried this, and it seems to have worked. However, if I specify a -u or -c option that differs from the value in the new changespec, it doesn't

work.

I just tried it and it worked ok. $ p4 -u user -c otherclient change -i -f Change: new Client: otherclient User: otheruser Status: new Description: Autogenerated comment here ^D Change 45239 created. $ p4 change -o 45239 | egrep "^Client|^User" Client: otherclient User: otheruser $ p4 info | grep version Server version: P4D/LINUX24X86/2002.2/41105 (2003/01/30) $ p4 -V Perforce - The Fast Software Configuration Management System. Copyright 1995, 2002 Perforce Software. All rights reserved. Rev. P4/LINUX24X86/2002.2/41105 (2003/01/30).