Support custom revert actions, necessary for recover operations to be able to reload the file with scripts enabled.