Handle a revision that's not a ref correctly