[p4] Revision limiting

Jeff Grills jgrills at junctionpoint.com
Thu Sep 28 10:31:11 PDT 2006


A better solution, IMO, was mentioned previously in this thread.  Go to this
link (http://www.perforce.com/perforce/conf2005/index.html), and read this
paper (Commit Trigger Example - A Configurable Number of Revisions by
Richard Baum, Perforce Software).

Here are links directly to the paper and presentation:

http://www.perforce.com/perforce/conf2005/presentations/BaumPaper.pdf
http://www.perforce.com/perforce/conf2005/presentations/BaumPresentation.pdf

It conceptually works by replacing the revision's contents in the storage of
all revisions of the file as known to perforce, and then forcing perforce to
update its internal data bits for that revision.   If files are stored in
the binary compressed mode (single complete compressed file per revision),
it should be relatively easy to implement.

j

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Jeff 
> Desharnais
> Sent: Thursday, September 28, 2006 10:49 AM
> To: Russell C. Jackson; Robert Cowham
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] Revision limiting
> 
> This could work, only if there is a good solution for 
> permanently backing up those older versions and storing them away.
> 
> Is this really possible, to remove old revisions but still 
> have them backed up somewhere and retrievable/restorable? 
> 
> Thanks.
> 
> 
> 
> -----Original Message-----
> From: Russell C. Jackson [mailto:rusty at rcjacksonconsulting.com]
> Sent: Thursday, September 28, 2006 11:27 AM
> To: Robert Cowham
> Cc: Jeff Desharnais; perforce-user at perforce.com
> Subject: Re: [p4] Revision limiting
> 
> If you don't need the old versions, it is pretty easy to 
> create a script that will obliterate all the last X 
> revisions. I did this for a team that said they only needed 
> to keep the last 5 revisions of the binaries they were 
> checking in available. It has been requested many times that 
> Perforce support this behavior directly, but so far, they 
> have not implemented it.
> 
> Thanks,
> Rusty
> 
> --------------------------------------------------
> RCJackson Consulting
> Perforce Consulting Partner and Certified Trainer
> --------------------------------------------------
> rusty at rcjacksonconsulting.com
> http://www.rcjacksonconsulting.com
> tel:      479-696-9710
> fax:      479-967-0963
> mobile:   479-747-3845
> --------------------------------------------------
> 
> 
> 
> 
> Robert Cowham wrote:
> > Look at Richard Baum's presentation:
> >
> > http://www.perforce.com/perforce/conf2005/index.html
> >
> > Note that ICManage do something similar for their 
> customised version 
> > of Perforce.
> >
> > Regards
> > Robert


More information about the perforce-user mailing list