saving revision during the build