Exemple #1
0
def status():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.view_status()
Exemple #2
0
def untrack(name):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.untrack_file(name)
Exemple #3
0
def revert(c):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.load_commit_by_id(c)
Exemple #4
0
def merge(b):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.merge_with_branch_by_name(b)
Exemple #5
0
def log():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.log()
Exemple #6
0
def checkout():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.switch_to_branch_by_name(b)
Exemple #7
0
def branch(b):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.create_new_branch(b)
Exemple #8
0
def init():
    engine.VCS().initialize()
Exemple #9
0
def commit(m):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.add_new_commit(m)