Support 'head' or 'latest' as a revision number.