示例#1
0
def rule_3_f_iii_A(repo, weight, roleBranches, parameters):
    # Rule 3.f.iii.A - Fix branches integrated into change branch upstream

    branchOrig = ed.getBranchesForRole(repo, roleBranches, "fix")
    branchTgt = ed.getBranchesForRole(repo, roleBranches, "change")
    fitness = ed.fracFitIntegration(repo, branchOrig, branchTgt, True) * weight

    return fitness
示例#2
0
def rule_3_d_iv_A(repo, weight, roleBranches, parameters):
    # Rule 3.d.iv.A - Change branches integrated into release branch upstream

    branchOrig = ed.getBranchesForRole(repo, roleBranches, "change")
    branchTgt = ed.getBranchesForRole(repo, roleBranches, "release")
    fitness = ed.fracFitIntegration(repo, branchOrig, branchTgt, True) * weight

    return fitness
示例#3
0
def rule_3_e_ii_A(repo, weight, roleBranches, parameters):
    # Rule 3.e.ii.A - Release branches integrated into integration branch upstream

    branchOrig = ed.getBranchesForRole(repo, roleBranches, "release")
    branchTgt = ed.getBranchesForRole(repo, roleBranches, "integration")
    fitness = ed.fracFitIntegration(repo, branchOrig, branchTgt, True) * weight

    return fitness
示例#4
0
def rule_3_b_iii_A(repo, weight, roleBranches, parameters):
    # Rule 3.b.iii.A - Main branch integrated into Change branches upstream

    branchOrig = ed.getBranchesForRole(repo, roleBranches, "main")
    branchTgt = ed.getBranchesForRole(repo, roleBranches, "change")
    fitness = ed.fracFitIntegration(repo, branchOrig, branchTgt, True) * weight

    return fitness