PBR

Comment 5 for bug 1453996

Revision history for this message
Robert Collins (lifeless) wrote :

Found where we're getting the tags from - _get_revno_and_last_tag

But we already have this logic in place:
    for row_count, (ignored, tag_set, ignored) in enumerate(changelog):
        version_tags = set()
        for tag in list(tag_set):
            try:
                version_tags.add(version.SemanticVersion.from_pip_string(tag))
            except Exception:
                pass
        if version_tags:
            return max(version_tags).release_string(), row_count