In mercurial, is there an easy way to programmatically check out the ‘latest’ tag?
Meaning, if hg tags produces this:
tip
Tag3
Tag2
Tag1
Is there an easy way to checkout Tag 3 in a generic way? Meaning, not just hg checkout Tag3, but a generic way of doing so.
EDIT: If I must use scripting, I can. However, I’m stuck on windows and would like to avoid scripting if possible.
You can do it with revsets. Probably something like this: