Given a nice string labe that works with hg show
(ex: hg show stable
), how can I determine if stable
is a tag name, a bookmark name, or a named branch?
hg show
will show nothing about repository, becausehg config
is used forshow combined config settings from all hgrc files
only
hg log -r <ID>
even with default templateId is tag
>hg log -r 0.2.4
changeset: 358:b53421918a89
tag: 0.2.4
...
Id is bookmark
>hg log -r mainline
changeset: 1195:b800644fcbe2
bookmark: mainline
…
The same results will appear for topics|branches, I just haven't samples now