From 8a9087a7f02edea4ad2e42182b2db0b93ef6cf34 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 19 Dec 2005 23:24:49 +0000 Subject: [PATCH] fetch_head_rev() now works well :) --- includes/svnlib.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/svnlib.php b/includes/svnlib.php index cc8724e..b2db369 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -429,6 +429,16 @@ class SVNCommon */ function fetch_head_rev($path) { + $output = $this->registry->shell->exec($this->registry->svn->svnpath . ' info ' . $this->registry->repos->fetch_path($this->registry->paths->fetch_repos($path), false) . $this->registry->paths->fetch_path($path)); + + foreach ($output AS $line) + { + if (preg_match('#^Last Changed Rev: (.*)#', $line, $matches)) + { + return $matches[1]; + } + } + $revs = $this->fetch_revs($path); return $revs['HEAD']; } @@ -476,6 +486,7 @@ class SVNCommon * @access public * * @param string Universal path + * @param bool Override the cache system? * * @return array Log data */ -- 2.22.5