[p4] Detecting if a client exists (cheaply)

Robert Cowham robert at vaccaperna.co.uk
Fri Feb 8 14:39:40 PST 2008


Note that Tony Smith's "create default client workspace" form-out trigger
does this p4 info trick - with the comment "performs better at sites with
many clients".

Worth learning from someone wot knows :)

Robert

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Shawn Hladky
> Sent: 06 February 2008 23:27
> To: Ivey, William
> Cc: Brad Holt; perforce-user at perforce.com
> Subject: Re: [p4] Detecting if a client exists (cheaply)
> 
> I do a p4 info and look for Client unknown (or 
> clientName=*unknown* with
> ztag/api)
> C:\>p4 -c bogus info
> User name: shawnh
> Client name: bogus
> Client host: shawnhpc
> Client unknown.
> 
> C:\>p4 -ztag -c bogus info
> ... userName shawnh
> ... password enabled
> ... clientName *unknown*
> 



More information about the perforce-user mailing list