mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
b147e53e3f
commit
88eaae271b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user