[cvsnt] Keeping only the last few versions in the repository

Glen Starrett glen.starrett at march-hare.com
Fri Feb 22 02:57:22 GMT 2008


Gerhard Fiedler wrote:
> Arthur Barrett wrote:
> 
>>> Basically I would like to automaticaly delete 
>>> old revisions.
>> Deleting old revisions is not recommended.
> 
> A way to do it (recommended or not :) is to write a script that parses the
> log output, determines whether the file fits the criteria, and removes it.
> Possibly the Python API included in WinCvs helps with that.
> 
> You may want to exclude any revisions that have tags on them from removing,
> for example.

You might also want to consider adding a time element to it, so that you 
don't remove any versions that are less than X days old even if there 
are more than Y versions, for example.



-- 
Glen Starrett
Technical Account Manager, North America
March Hare Software, LLC

http://march-hare.com/cvspro/


More information about the cvsnt mailing list