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'
--- 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