Only do the latest five tags when using UCM:Tags on git

This commit is contained in:
Daniel Martí 2014-04-17 21:05:18 +02:00
parent 3736da3761
commit 00fa44e916
2 changed files with 20 additions and 4 deletions

View file

@ -123,6 +123,9 @@ def check_tags(app, pattern):
pat = re.compile(pattern)
tags = [tag for tag in tags if pat.match(tag)]
if repotype in ('git',):
tags = vcs.latesttags(tags, 5)
for tag in tags:
logging.debug("Check tag: '{0}'".format(tag))
vcs.gotorevision(tag)