[p4] db.label on steroids

Mahler, Michael mmahler at pacelinesystems.com
Thu Aug 29 12:03:39 PDT 2002


Everyone - you've been beyond helpful and I hope to return such as time goes
by and I ramp up on Perforce.

Thanks!


-----Original Message-----
From: Russell C. Jackson [mailto:rcjackson at alum.atu.edu]
Sent: Thursday, August 29, 2002 2:54 PM
To: 'Melissa Hunt'; 'Mahler, Michael'; perforce-user at perforce.com
Subject: RE: [p4] db.label on steroids


Here are the scripts. I am replying to the whole list since quite a few
people asked. They are also in the public depot under
guest/russell_jackson along with all my other maintenance scripts.

I attached the output of the client we use for doing this as well just
so you would be able to see all of the information involved in this
process.

The way to use these scripts is to first run the labeldates.py script.
That creates a list of labels that are older than 3 weeks. (You can
modify the length of time in the script.) You then run caplabels.btm and
pass in the list of labels to archive that was created by the
labeldates.py script. If you want to restore a label, you run
restorelabel.btm <labelname>. 

All others are used by those these main scripts. You can run
setscriptdir.btm to set the environment variable needed to use the
scripts as well.

Rusty

-----Original Message-----
From: Melissa Hunt [mailto:Melissa_Hunt at sonic.com] 
Sent: Thursday, August 29, 2002 8:49 AM
To: Russell C. Jackson; Mahler, Michael; perforce-user at perforce.com
Subject: RE: [p4] db.label on steroids


I would be interested in seeing these scripts.  Labels so easily get out
of hand and this would be ever so helpful.  = ) -M

-----Original Message-----
From: Russell C. Jackson [mailto:rcjackson at alum.atu.edu] 
Sent: Thursday, August 29, 2002 9:18 AM
To: 'Mahler, Michael'; perforce-user at perforce.com
Subject: RE: [p4] db.label on steroids


We wrote some scripts to save the labels as files and then check them
into the depot. We also have one to restore the label as well if we ever
need it. If you do this, and then do a checkpoint and a restore from
that checkpoint, your db.label file will be reduced.

Our scripts use 4NT and python to do this. Let me know if you are
interested in seeing them and I can send them to you.

Rusty

-----Original Message-----
From: perforce-user-admin at perforce.com
[mailto:perforce-user-admin at perforce.com] On Behalf Of Mahler, Michael
Sent: Thursday, August 29, 2002 6:39 AM
To: perforce-user at perforce.com
Subject: [p4] db.label on steroids



Ours has grown to enormous size, is there a way to compact it?  Will
removing labels make it smaller?
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


_______________________________________________
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