Add function: get revision of local file