[p4] How to list stale client spec's

Robert Cowham robert at vaccaperna.co.uk
Wed Oct 18 01:59:18 PDT 2006


Clients also have an accessed timestamp.

C:\bruno_ws>p4 -ztag clients | grep -3 bruno_ws

... client bruno_ws
... Update 1161095799
... Access 1161100997
... Owner bruno
... Options noallwrite noclobber nocompress unlocked nomodtime rmdir
... Root c:\bruno_ws
... Host
... Description Created by bruno. 


Be careful since certain commands such as p4 files @client-name can update
this value.

Thus from the above using access time for bruno_ws:

C:\bruno_ws>ruby -e "print Time.at(1161100997)"
Tue Oct 17 17:03:17 GMT Daylight Time 2006

C:\bruno_ws>p4 files @bruno_ws
//depot/dev/robert/jam/Build.com#2 - edit change 720 (text)
//depot/dev/robert/jam/Build.mpw#2 - edit change 720 (text)
//depot/dev/robert/jam/command.c#2 - edit change 720 (text)
//depot/dev/robert/jam/command.h#1 - branch change 719 (text)
//depot/dev/robert/jam/compile.c#1 - branch change 719 (text)

C:\bruno_ws>p4 -ztag clients | grep -3 bruno_ws

... client bruno_ws
... Update 1161095799
... Access 1161161607
... Owner bruno
... Options noallwrite noclobber nocompress unlocked nomodtime rmdir
... Root c:\bruno_ws
... Host
... Description Created by bruno.

C:\bruno_ws>ruby -e "print Time.at(1161161607)"
Wed Oct 18 09:53:27 GMT Daylight Time 2006

Robert

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> Helck, Christopher
> Sent: 17 October 2006 21:36
> To: perforce-user at perforce.com
> Subject: [p4] How to list stale client spec's
> 
> Hi,
> 
> Is there a way to list when a client spec was last used? I 
> see that 'p4 clients' lists the modification date that the 
> spec was last changed on.
> What I want is to know is the last time someone did a sync or submit.
> 
> My intent is to get a list of old or unused client specs and 
> ask my users to clean them up.
> 
> Thanks,
> C. Helck
> 
> 
>  
> Thank you for being part of it.
>  
> The information contained in this e-mail is confidential. 
> This e-mail is intended only for the stated addressee.  If 
> you are not an addressee, you must not disclose, copy, 
> circulate or in any other way use or rely on the information 
> contained in this e-mail. if you have received this e-mail in 
> error, please inform us immediately and delete it and all 
> copies from your system.
> 
> EBS Dealing Resources International Limited. Registered 
> address: 10 Paternoster Square, London EC4M 7DY, United 
> Kingdom. Registered number 2669861.
> 
> EBS Dealing Resources, Inc, registered in Delaware. Address: 
> 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and 
> One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
> 
> EBS Dealing Resources Japan Limited, a Japanese Corporation. 
> Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, 
> Chuo-Ku,  Tokyo 104-0033, Japan.
> 
> _______________________________________________
> 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