mergin/cli.py
def show_version(ctx, version):
    """Displays information about a single version of a project. `version` is 'v1', 'v2', etc."""
    mc = ctx.obj["client"]
    if mc is None:
        return
    directory = os.getcwd()
    mp = MerginProject(directory)
    project_path = mp.metadata["name"]
    # TODO: handle exception when version not found
    version_info_dict = mc.project_version_info(project_path, version)[0]
    click.secho("Project: " + version_info_dict["project"]["namespace"] + "/" + version_info_dict["project"]["name"])
    click.secho("Version: " + version_info_dict["name"] + " by " + version_info_dict["author"])
    click.secho("Time:    " + version_info_dict["created"])
    pretty_diff(version_info_dict["changes"])
Displays information about a single version of a project. `version` is 'v1', 'v2', etc.
Displays information about a single version of a project.
Displays information about a single version of a project .
def show_version(ctx, version):
    mc = ctx.obj["client"]
    if mc is None:
        return
    directory = os.getcwd()
    mp = MerginProject(directory)
    project_path = mp.metadata["name"]
    version_info_dict = mc.project_version_info(project_path, version)[0]
    click.secho("Project: " + version_info_dict["project"]["namespace"] + "/" + version_info_dict["project"]["name"])
    click.secho("Version: " + version_info_dict["name"] + " by " + version_info_dict["author"])
    click.secho("Time:    " + version_info_dict["created"])
    pretty_diff(version_info_dict["changes"])
def show_version ( ctx , version ) : mc = ctx . obj [ "client" ] if mc is None : return directory = os . getcwd ( ) mp = MerginProject ( directory ) project_path = mp . metadata [ "name" ] version_info_dict = mc . project_version_info ( project_path , version ) [ 0 ] click . secho ( "Project: " + version_info_dict [ "project" ] [ "namespace" ] + "/" + version_info_dict [ "project" ] [ "name" ] ) click . secho ( "Version: " + version_info_dict [ "name" ] + " by " + version_info_dict [ "author" ] ) click . secho ( "Time:    " + version_info_dict [ "created" ] ) pretty_diff ( version_info_dict [ "changes" ] )
Displays information about a single version of a project.
Displays information about a single version of a project .
"""Displays information about a single version of a project. `version` is 'v1', 'v2', etc.""" # TODO: handle exception when version not found
ctx
version