From 517a18463a628e207a7c93d7e12789e73379a48f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 28 Aug 2005 20:30:12 +0000 Subject: [PATCH] Trigger an error on matching error info --- includes/svnlib.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/svnlib.php b/includes/svnlib.php index 6f0e835..ad293d9 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -106,7 +106,13 @@ class SVNLib { global $viewsvn; - return $viewsvn->shell->exec($this->svnpath . ' ' . $command . ' 2>&1'); + $output = $viewsvn->shell->exec($this->svnpath . ' ' . $command . ' 2>&1'); + $temp = implode("\n", $output); + if (strpos($temp, 'apr_error=') !== false OR strpos($temp, 'svn:') !== false) + { + $viewsvn->trigger->error(nl2br($temp)); + } + return $output; } /** @@ -187,7 +193,7 @@ class SVNLib $lorev = $this->rev($lorev); if ($lorev == 'HEAD') { - $lorev = 0; + $lorev = 1; } if (is_integer($hirev) AND is_integer($lorev)) -- 2.43.5