Tronicek wrote:
Is there a way to purge document revisions using
Velocity or Groovy?
Someone can see actual and last revision by:
${doc.getVersion()}<br>
${doc.getPreviousDocument().getVersion()}<br>
The next is deleting the document with all revisions...
Don't try to purge with(!):
${doc.getPreviousDocument().delete()}
There's:
$xwiki.getDocument('Some.Document').getDocument().resetArchive($context.context)
But this requires programming rights.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/