Package: collective.revisionmanager
collective.revisionmanager is a Plone add-on that lets you manage Products.CMFEditions histories.
It can be used with Plone 6.0, 5.2, 5.1, 5.0 (untested) and Plone 4.3.
You will need Products.CMFEditions version >= 2.2.16.
This is available by default in the latest bugfix releases of all supported Plone versions.FeaturesSorted listing of histories storage (portal_historiesstorage) contents. Sort by: history id, number of versions, history size, size state, portal type or pathPurge revisions or delete entire historiesMaintain a cache for the statisticsPlone controlpanel interface for portal_purgepolicyTranslationsBrazilian Portuguese, German and Spanish translations are available.InstallationInstall collective.revisionmanager by adding it to your buildout:[buildout]

...

eggs =
    collective.revisionmanagerand then runningbin/buildout. During installation,collective.revisionmanagerwill check wether thecmf_uidcatalog index is there - if not, the index will be added and indexed. This step may require a considerable amount of time depending on the number of objects and object revisions in your database. Also, a cache for the statistics will be created.After installation, you will have to calculate the statistics initially before you can see anything. Statistics calculation was done automatically during installation in earlier releases, but for sites with large databases and limited memory it may be necessary to configure subtransactions prior to updating the cache.Calculating StatisticsBefore you can usecollective.revisionmanageryou need to fill its history statistics cache. You can do so by visting Plone Control Panel -> Addon Configuration -> Manage Revisions and then clicking on theRecalculate Statisticsbutton. Calculation may take a lot of time if you have lots of objects and object revisions in your database.You will have to recalculate statistics from time to time to keep them up to date at intervals depending on database activity.Dealing with catalog inconsistenciesIf the installation fails with anAttributeErrorinProducts.ZCatalog.CatalogBrains, yourportal_catalogis inconsistent and you need torebuildit. As a quick workaround, you can also simply clear (or even delete) thecmf_uidcatalog index -collective.revisionmanagerwill rebuild it during installation. But be aware that yourportal_catalogis still inconsistent and needs rebuilding.Always make sure thecmf_uidindex is consistent because it is used to determine the working copy of a history. Incorrectly indexed content will show up as having no working copy in the histories list!ContributeIssue Tracker:https://github.com/collective/collective.revisionmanager/issuesSource Code:https://github.com/collective/collective.revisionmanagerDocumentation:https://github.com/collective/collective.revisionmanager/README.rstLicenseThe project is licensed under the GPLv2.ContributorsThomas Schorr,t_schorr@gmx.deHector VelardeChangelog1.2.2 (2022-09-16)Added Dutch translations.  [jladage]Use Bootstrap classes on buttons to look nicer in Plone 6. [jladage]1.2.1 (2022-07-05)Let the histories table look nicer in Plone 6.  [maurits]Fixed link to Site Setup to work in all supported Plone versions.  [maurits]1.2.0 (2021-10-28)Allow all Managers to use the full control panel.
Until now, for some parts you needed to be Manager in the Zope root.
Fixesissue 30.
[maurits]Test with Plone 6 (still also on 4.3, 5.1, 5,2) and on GitHub Actions.
[maurits]1.1.0 (2021-09-16)Fixes a bug in Plone 5.2 (‘RequestContainer’ object has no attribute
‘translate’)
[pysailor]Drop CMFQuickInstaller dependency.  [pbauer]1.0.0 (2020-08-18)Add support for Python 3.
[pbauer,maurits,tschorr]0.9 (2019-10-07)Fixed deleting orphans in Plone 5.1+ (CMFEditions 3).
Fixesissue #19.  [maurits]Fixed startup error by loading the CMFCore zcml.  [maurits]0.8 (2017-08-31)Do not fail onBrokenModifiedwhile calculating storage statistics.
[pbauer]UX-Improvements: Display size in a human-readable format, allow to increase the batch-size with a query-string, allow selecting all items.
[pbauer]In addition to the overall number of revisions, also display the number of purged revisions (fixes#14).
[tschorr]Decrease log level for logging processing of each history (fixes#15).
[tschorr]Add script to rebuild i18n stuff and update translations.
[hvelarde]0.7 (2016-11-29)Do not fail onPOSKeyErrorwhile calculating storage statistics (fixes#9).
[tschorr]Storage statistics calculation now works behind a proxy (fixes#8).
[tschorr]Fix a typo. This requires to run an update step (see#10).
[tschorr]0.6 (2016-11-04)Add Brazilian Portuguese and Spanish translations.
[hvelarde]Fix package uninstall.
[hvelarde]Fix package dependencies.
Remove needless dependency on z3c.jbot.
[hvelarde]0.5 (2016-04-29)do not calculate statistics during installation. This allows to
configure subtransactions (and thereby memory consumption) before
calculating statistics initiallyadd more german translationsmore work on i18nfix KeyError when sorting by portal_typeadd button to delete all histories without working copy at once0.4 (2016-04-19)introducing subtransactions to save memorymore work on german translations0.3 (2016-04-06)add some german translationshandle POSKeyError when accessing inconsistent histories storage0.2 (2016-03-02)revisions controlpanel now works in Plone 5Replace Update Statistics View by a button in controlpanelTravis testing for Plone 4.3.x and 5.0.xcheck for marker file in post install step0.1 (2016-03-01)Initial release.