Exemple #1
0
/** Return the SourceForge Allura URL */
function get_allura_diff_url($projecturl, $directory, $file, $revision)
{
    if ($revision != '') {
        $prev_revision = get_previous_revision($revision);
        if ($prev_revision != $revision) {
            $diff_url = $projecturl . "/" . $revision . "/tree/trunk/" . $directory . "/" . $file . "?diff=" . $prev_revision;
        } else {
            $diff_url = $projecturl . "/" . $revision . "/tree/trunk/";
        }
    } else {
        $diff_url = $projecturl . "/" . $revision;
    }
    return make_cdash_url($diff_url);
}
Exemple #2
0
/** Return the SourceForge Allura URL */
function get_allura_diff_url($projecturl, $directory, $file, $revision)
{
    if ($revision != '') {
        $prev_revision = get_previous_revision($revision);
        if ($prev_revision != $revision) {
            //diff
            $diff_url = $projecturl . '/' . $revision . '/tree/trunk/' . $directory . '/' . $file . '?diff=' . $prev_revision;
        } else {
            //view
            $diff_url = $projecturl . '/' . $revision . '/tree/trunk/';
        }
    } else {
        //log
        $diff_url = $projecturl . '/' . $revision;
    }
    return make_cdash_url($diff_url);
}