def svnopen(args):

    returncode = None
    output = None
    cmd = [_svn_path, "--non-interactive"] + args

    env = environ.copy()
    env['LC_ALL'] = 'en_US'

    if _PLATFORM == "windows":
        startupinfo = subprocess.STARTUPINFO()
        startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
        process = subprocess.Popen(
            cmd,
            startupinfo=startupinfo,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            stdin=subprocess.PIPE,
            shell=False,
            env=env
        )
    else:
        process = subprocess.Popen(
            cmd,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            stdin=subprocess.PIPE,
            shell=False,
            env=env
        )
    output = process.communicate()
    returncode = process.returncode

    assert returncode == 0, "Runtime Error: %s" % output[0].rstrip()

    return output[0]
If dupe completed results exists, find the last-modified.
dataset/ETHPy150Open facelessuser/EasyDiff/lib/svn.py/svnopen--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/view/runtests/templatetags/test_execution.py/ResultForTest.test_dupe_complete_results_keeps_both_finds_latest