Code

Replace opt_no_head with opt_head_rev in order to save the HEAD rev