foreach ($files as $file) {
$command .= ' ' . escapeshellarg($file);
}
+ if ($this->config->get('verbose') > 1) {
+ $this->output .= "+ $command\n";
+ }
$this->output .= "+ $command\n";
if (empty($options['dry-run'])) {
$fp = popen($command, "r");
function doCvsDiff($command, $options, $params)
{
$this->output = '';
- $_cmd = $command;
if (sizeof($params) < 1) {
$help = $this->getHelp($command);
return $this->raiseError("$command: missing parameter: $help[0]");
$execute = true;
if (isset($options['dry-run'])) {
$execute = false;
+ unset($options['dry-run']);
}
$cmd .= ' diff';
+ // the rest of the options are passed right on to "cvs diff"
foreach ($options as $option => $optarg) {
$arg = @$this->commands[$command]['options'][$option]['arg'];
$short = @$this->commands[$command]['options'][$option]['shortopt'];
foreach ($files as $file) {
$cmd .= ' ' . escapeshellarg($file);
}
- $this->output .= "+ $cmd\n";
+ if ($this->config->get('verbose') > 1) {
+ $this->output .= "+ $cmd\n";
+ }
if ($execute) {
$fp = popen($cmd, "r");
while ($line = fgets($fp, 1024)) {
}
pclose($fp);
}
- $this->ui->outputData($this->output, $_cmd);
+ $this->ui->outputData($this->output, $command);
return true;
}