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