Added hooks to save revision files when we update the code