[Moin-user] Cleaning out past revision history

Nir Soffer nirs at freeshell.org
Tue Apr 25 01:21:04 EDT 2006

On 24/04/2006, at 23:07, Pixologic Documentation Team wrote:

> Since our prototype site is now the way we want it for public release, 
> I'd like to clean out all of the historical revisions. I've written a 
> little script (once I get out the bugs) will simply go through all of 
> the page directories, remove all except the most recent revision, 
> rename that rev to 00...001, and then update the number in "current" 
> to be 00...001. Before I get into the grotty details of trying to make 
> it work (the basic script only took about 20 minutes; ah, how I love 
> python) I was wondering if anyone knows of any problems I might run 
> into doing this, i.e. does Moin store info about revisions somewhere 
> else.

You should also remove the logs from the wiki and each page directory.

You have to check for deleted pages, which are pages with current file 
that point to non existing revision. Maybe first delete such pages, 
then remove the old revisions from the others.

Best Regards,

Nir Soffer

More information about the Moin-user mailing list