[p4] Cannot delete user

Jeff Grills jgrills at drivensnow.org
Fri Oct 6 11:54:02 PDT 2006


It's not safe to assume that the file is open in a client owned by the user.
I just impersonated another user (by setting P4USER) and opened a file up
for edit by them within my client - that works just fine.  I think it's best
to check the output of "p4 opened -a" for the user in question, as another
person already pointed out, and then revert the file in that client or
remove the client.

j

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Peter Stephenson
Sent: Friday, October 06, 2006 11:17 AM
To: perforce-user at perforce.com
Subject: Re: [p4] Cannot delete user

You can find all applicable clients with something like...

p4 -ztag clients | grep -C3 'Owner <usr>'

...then you can find what's open on each of them...

p4 opened -C <that-client>

In fact, the following ought to do it...

for client in `p4 -ztag clients | grep -C3 '^\.\.\. Owner <user>' |
  awk '/^\.\.\. client/ { print $3 }'`; do
  p4 opened -C $client
done

-- 
Peter Stephenson <pws at csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



More information about the perforce-user mailing list