HomePhorge

Remove old revision after new part is committed.

Description

Remove old revision after new part is committed.

We used to not clean-up after a new revision has been committed.

What this patch doesn't handle is the case of a transaction rollback.
In case of a rollback the parts will be reverted, but the
old revision file is already gone. To avoid this problem old revision
should only be removed once the corresponding transaction is committed.