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