You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
874 B

<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require __DIR__ . '/svntools.php';
// Perform basic checks
if (! isset($_SERVER['argc']) || $_SERVER['argc'] != 2) {
error("Missing argument. Expecting branch to review as argument.\n\nExamples:\n\tbranches/experimental/plugin_ui");
}
$source = full($_SERVER['argv'][1]);
$trunk = full('trunk');
if (! is_experimental($source)) {
error("This script is only valid to review experimental branches.");
}
$last = find_last_merge($source, $trunk);
if (! $last) {
error("Could not find previous merge.");
}
$eS = escapeshellarg($source);
$eT = escapeshellarg($trunk);
passthru("svn diff $eT@$last $eS");