Support ^/~N modifiers on revision numbers (e.g. 1^, 2~3)