Better handling of storing file revision