예제 #1
0
def go_update_and_clean(version=None):
    """git pull on all the repos of the main source folder (except for support-tools)"""
    params = {"pull": True, "--version": version}
    _git_odoo_app(**params)
    clear_pyc()
    differed_sh_run("go_venv_current")
    differed_sh_run("echo '--------'")
    differed_sh_run("golist")
예제 #2
0
def go(*args):
    # switch branch for all odoo repos
    print("cleaning all the junk")
    clear_pyc()
    params = {"checkout": True, "<version>": args}
    _git_odoo_app(**params)
    if len(args) == 1:
        differed_sh_run(f"go_venv {args[0]}")
    print("-----------")
    differed_sh_run("golist")
예제 #3
0
def godb(db_name):
    """switch repos branch to the version of the given DB"""
    try:
        version = _get_version_from_db(db_name)
    except OperationalError:
        print(f"DB {db_name} does not exist")
    else:
        params = {"checkout": True, "--dbname": db_name}
        _git_odoo_app(**params)
        differed_sh_run(f"go_venv {version}")
예제 #4
0
def go_fetch(*args):
    # git fetch on all the repos of the main source folder
    _git_odoo_app(fetch=True)