Example #1
0
def status():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.view_status()
Example #2
0
def untrack(name):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.untrack_file(name)
Example #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)
Example #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)
Example #5
0
def log():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.log()
Example #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)
Example #7
0
def branch(b):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.create_new_branch(b)
Example #8
0
def init():
    engine.VCS().initialize()
Example #9
0
def commit(m):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.add_new_commit(m)