示例#1
0
文件: dist.py 项目: pkimber/fabric
def check_scm_status():
    print(yellow("check version control status..."))
    scm = Scm(os.getcwd())
    status = scm.get_status()
    for name in status:
        if name not in ('setup.py',):
            abort('The following files have not been committed: {0}'.format(status))
示例#2
0
文件: dist.py 项目: pkimber/fabric
def commit_and_tag(version):
    print(yellow("version control - commit and tag..."))
    scm = Scm(os.getcwd())
    scm.commit_and_tag(version)
示例#3
0
文件: dist.py 项目: pkimber/fabric
def get_scm_config():
    print(yellow("get version control config..."))
    scm = Scm(os.getcwd())
    return scm.get_config()