tasks/release.py
def _find_v6_tag(ctx, v7_tag):
    """
    Returns one of the v6 tags that point at the same commit as the passed v7 tag.
    If none are found, returns the empty string.
    """
    v6_tag = ""

    print(f"Looking for a v6 tag pointing to same commit as tag '{v7_tag}'...")
    # Find commit at which the v7_tag points
    commit = ctx.run(f"git rev-list --max-count=1 {v7_tag}", hide='out').stdout.strip()
    try:
        v6_tags = ctx.run(f"git tag --points-at {commit} | grep -E '^6\\.'", hide='out').stdout.strip().split("\n")
    except Failure:
        print(f"Found no v6 tag pointing at same commit as '{v7_tag}'.")
    else:
        v6_tag = v6_tags[0]
        if len(v6_tags) > 1:
            print(f"Found v6 tags '{v6_tags}', picking {v6_tag}'")
        else:
            print(f"Found v6 tag '{v6_tag}'")

    return v6_tag

    Returns one of the v6 tags that point at the same commit as the passed v7 tag.
    If none are found, returns the empty string.
    
Returns one of the v6 tags that point at the same commit as the passed v7 tag.
If none are found, returns the empty string.
Returns one of the v6 tags that point at the same commit as the passed v7 tag . If none are found returns the empty string .
def _find_v6_tag(ctx, v7_tag):
    v6_tag = ""
    print(f"Looking for a v6 tag pointing to same commit as tag '{v7_tag}'...")
    commit = ctx.run(f"git rev-list --max-count=1 {v7_tag}", hide='out').stdout.strip()
    try:
        v6_tags = ctx.run(f"git tag --points-at {commit} | grep -E '^6\\.'", hide='out').stdout.strip().split("\n")
    except Failure:
        print(f"Found no v6 tag pointing at same commit as '{v7_tag}'.")
    else:
        v6_tag = v6_tags[0]
        if len(v6_tags) > 1:
            print(f"Found v6 tags '{v6_tags}', picking {v6_tag}'")
        else:
            print(f"Found v6 tag '{v6_tag}'")
    return v6_tag
def _find_v6_tag ( ctx , v7_tag ) : v6_tag = "" print ( f"Looking for a v6 tag pointing to same commit as tag '{v7_tag}'..." ) commit = ctx . run ( f"git rev-list --max-count=1 {v7_tag}" , hide = 'out' ) . stdout . strip ( ) try : v6_tags = ctx . run ( f"git tag --points-at {commit} | grep -E '^6\\.'" , hide = 'out' ) . stdout . strip ( ) . split ( "\n" ) except Failure : print ( f"Found no v6 tag pointing at same commit as '{v7_tag}'." ) else : v6_tag = v6_tags [ 0 ] if len ( v6_tags ) > 1 : print ( f"Found v6 tags '{v6_tags}', picking {v6_tag}'" ) else : print ( f"Found v6 tag '{v6_tag}'" ) return v6_tag
Returns one of the v6 tags that point at the same commit as the passed v7 tag.
Returns one of the v6 tags that point at the same commit as the passed v7 tag .
"""
    Returns one of the v6 tags that point at the same commit as the passed v7 tag.
    If none are found, returns the empty string.
    """ # Find commit at which the v7_tag points
ctx
v7_tag