This is fraught with danger and not recommended. Reversion is the domain of Git, rather than Clarive, and is performed using git reset. The problem is down to conflicts which often occur when reverting, and these can only be resolved manually; automating git reset is likely to do more harm than good.