6 messages in com.perforce.perforce-user[p4] How to clear db.have of old clients
FromSent OnAttachments
Andreas Axelsson18 Aug 2004 23:15 
David Jones19 Aug 2004 03:20 
Kenneth Olwing19 Aug 2004 05:13 
David Jones19 Aug 2004 06:13 
Kenneth Olwing19 Aug 2004 08:03 
Chuck Karish23 Aug 2004 09:21 
Subject:[p4] How to clear db.have of old clients
From:David Jones (dr@ravenbrook.com)
Date:08/19/2004 03:20:00 AM
List:com.perforce.perforce-user

On Aug 19, 2004, at 07:15, Andreas Axelsson wrote:

Hi all,

I have a number of clientspecs that are not used anymore. They refer to computers no longer used and projects that have been shipped and depricated. I would like to keep the clientspecs, but I don't want db.have to refer to any files, as they for most part don't exist on the client disk any longer. (There's no client disk at all) The users still exist though.

I suppose submitting the client specs to the depot and deleting the clients would do the trick, but can it be done any other way, without deleting the clients?

p4 flush //...#none

You'll need -c to specify the clientspec, and you might need -H to spoof the hostname:

p4 -H deadhost -c axl-deadhost flush //...#none

You can also get rid of a host specifier in the clientspec by going:

p4 client -o axl-deadhost | sed '/^Host:/d' | p4 client -i

(On UNIX or something like it).

If your db.have is very large then you may need to recreate from a checkpoint.