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")
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")
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}")
def go_fetch(*args): # git fetch on all the repos of the main source folder _git_odoo_app(fetch=True)