# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 2020-12-20 14:47:02 # Node ID dc4564ee57dcdd06179f23cbbd37fbdebc88d06b # Parent 3aec2620554b65f9b31da872a1ced998d7c98889 tags: describe all abnormal tag types in `hg tags -v` In particular, this affects `git` and `git-remote` tags when using hg-git. Test Plan: I have not included an explicit test, as this is much more easily tested within the `hg-git` test suite. Differential Revision: https://phab.mercurial-scm.org/D9639 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -7316,10 +7316,11 @@ def tags(ui, repo, **opts): for t, n in reversed(repo.tagslist()): hn = hexfunc(n) label = b'tags.normal' - tagtype = b'' - if repo.tagtype(t) == b'local': - label = b'tags.local' - tagtype = b'local' + tagtype = repo.tagtype(t) + if not tagtype or tagtype == b'global': + tagtype = b'' + else: + label = b'tags.' + tagtype fm.startitem() fm.context(repo=repo)