Esempio n. 1
0
    scm = getSCM(prjctPath)
    gui.destroy()

    if scm == 'Git':
        artifacts = gitDiff(prjctPath, prjctName)
    if scm == 'Fossil':
        artifacts = fossilDiff(prjctPath, prjctName)
    if scm == 'SVN':
        artifacts = svnDiff(prjctPath, prjctName)
    if scm == '':
        print(
            "This project is either not under version control or you have not set the path to the approriate SCM program in lines 32-40"
        )
        sys.exit(0)

    d1, d2 = tkUI.runGUI(artifacts, prjctName, prjctPath, scm)

    print("Commit1", d1)
    print("Commit2", d2)

    if scm == 'Git':
        times = getGitDiff(d1, d2, prjctName, prjctPath)
    if scm == 'Fossil':
        times = getFossilDiff(d1, d2, prjctName, prjctPath)
    if scm == 'SVN':
        a1, *tail = d1.split(' |')
        d1 = a1[1:]
        a2, *tail = d2.split(' |')
        d2 = a2[1:]
        times = getSVNDiff(d1, d2, prjctName, prjctPath)
Esempio n. 2
0
    gui.deiconify()

    scm = getSCM(prjctPath)

    print(scm)

    gui.destroy()

    if scm == 'Git':
        artifacts = gitDiff(prjctPath, prjctName)
    if scm == 'Fossil':
        artifacts = fossilDiff(prjctPath, prjctName)
    if scm == 'SVN':
        artifacts = svnDiff(prjctPath, prjctName)

    dpi, d1, d2, layers = tkUI.runGUI(artifacts, prjctName, prjctPath, scm)

    print("Resolution (dpi) : ", dpi.get())
    print("Commit1", d1)
    print("Commit2", d2)

    selectedLayers = []

    if not os.path.exists('/tmp/svg'):
        os.makedirs('/tmp/svg')

    # progress = StringVar()
    # progress.set('Processing')
    # m = Label(gui, textvariable=progress)
    # m.pack()
    with open('/tmp/svg/layers', 'w') as f: