[p4] Quickly clear the have list?

Heather Van Steenburgh hvansteenburgh at tableausoftware.com
Tue Jul 7 18:12:23 PDT 2009


I did a couple of tests against a test server here and believe I've confirmed your flush time is due to the size of your client view.  I timed a flush #none of a dozen files using
   - client that viewed a small portion of depot - under 1 sec
   - client that viewed the entire depot - ~18 sec
   - client that viewed the entire depot but flushed just the files in the have list - under 1 sec

Limiting your client view can really help with response in general, so it is a good idea.  But if you really need a client that sees a large part of the depot you should be able to do a fast and safe clearing of the have list by doing the flush #none on just the files in that have list.

For example, from a unixy command line it would be something like this
$p4 have | awk -F'#' '{ print $1 "\#none" }' | p4 -x - flush

-----Original Message-----
From: perforce-user-bounces at perforce.com [mailto:perforce-user-bounces at perforce.com] On Behalf Of Tim McDaniel
Sent: Tuesday, July 07, 2009 4:32 PM
To: perforce-user at perforce.com
Subject: Re: [p4] Quickly clear the have list?

Another reply to me personally instead of the list ... not sure why
people are doing that, but whatever ...

He suggested that limiting the view to a small subset of the depot can
make a big difference in performance, either on the command itself
("p4 flush //depot/dev/NarfMonger/...#none") or in the view for the
client.  Thanks -- I'll check it out.

But I also have an "all" workspace, to make it easy to edit anything
in the depot regardless of its product, its branch, et cetera.
It would be nice to have a quick way to clear it out too.

He also suggested that people not put everything into their client
views (oh, well), and that people not have read permissions on the
entire depot (I'm a superuser, and I'm OK, I sleep all night and I
work all day.  More seriously, a number of developers are assigned to
product families with lots of files.)

-- 
Tim (suspenders and a bra) McDaniel, tmcd at panix.com
_______________________________________________
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