[p4] archiving old labels

Robert Cowham robert at vaccaperna.co.uk
Fri May 26 03:35:41 PDT 2006


I have a modified copy of Tony Smith's original script which is useful from
time to time. Recently had recourse to use it for a client and tweaked to
run with Ruby 1.8 plus some improved error handling.

//guest/robert_cowham/perforce/utils/specsaver.rb 

Accessible via:
http://public.perforce.com/guest/robert_cowham/perforce/utils/index.html

This script isn't really required with spec depots turned on, but it does do
the storing of label contents which spec depots don't do in any case.

Note you will need to customise with your details inside, then:

Sepcsaver.rb --labels

Does the trick.

Robert

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Zarnes, Todd
> Sent: 25 May 2006 19:55
> To: Garrett, Bonita; perforce-user at perforce.com
> Subject: Re: [p4] archiving old labels
> 
> Bonita,
> Here is what I do:
> 
> To save a Label off to a .txt file and Submit the .txt file 
> into Perforce. - Reference the book Practical Perforce, page 134.
> 
> p4 files @Label_Name  > Label_Name.txt
> Submit Label_Name.txt to //depot/SCM//LabelArchive/...
> 
> >From a cygwin prompt (with sed installed):
> 
> $ cat Label_Name.txt | sed -e "s/ - .*//" | p4 -x- labelsync 
> -l Label_Name

> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> Garrett, Bonita
> Sent: Thursday, May 25, 2006 12:39 PM
> To: perforce-user at perforce.com
> Subject: [p4] archiving old labels
> 
> I am investigating the feasibility of archiving old labels in 
> a system developed without a long term development support 
> strategy.  I would like to learn more about the process that 
> you have developed to implement the label archive.
>  
> Bonita Garrett
> (858) 458-7196 
>  


More information about the perforce-user mailing list