# HG changeset patch # User Andrew Shadura # Date 1387804471 -3600 # Node ID 0c22257388d6fc0f326236e09956da16931834c0 # Parent 33394f2e331ea46d2eaa149a3f7a35f050281976 templatekw: allow tagtypes other than global in getlatesttags hg-git uses tagtype 'git', for example, so it's better to check for tagtype != 'local', not strictly for 'global' diff -r 33394f2e331e -r 0c22257388d6 mercurial/templatekw.py --- a/mercurial/templatekw.py Tue Nov 26 12:58:27 2013 -0800 +++ b/mercurial/templatekw.py Mon Dec 23 14:14:31 2013 +0100 @@ -117,7 +117,8 @@ if rev in latesttags: continue ctx = repo[rev] - tags = [t for t in ctx.tags() if repo.tagtype(t) == 'global'] + tags = [t for t in ctx.tags() + if (repo.tagtype(t) and repo.tagtype(t) != 'local')] if tags: latesttags[rev] = ctx.date()[0], 0, ':'.join(sorted(tags)) continue