changeset 20218:0c22257388d6

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'
author Andrew Shadura <andrew@shadura.me>
date Mon, 23 Dec 2013 14:14:31 +0100
parents 33394f2e331e
children f694cd81b600
files mercurial/templatekw.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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