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'
This commit is contained in:
Andrew Shadura 2013-12-23 14:14:31 +01:00
parent b147e53e3f
commit 88eaae271b

View File

@ -117,7 +117,8 @@ def getlatesttags(repo, ctx, cache):
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