truncate revision string to 7 characters