Indefero

Indefero Commit Details


Date:2009-04-20 08:05:34 (15 years 8 months ago)
Author:Patrick Georgi
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:0efb0fec44577a195335224564d564148ccfa0f9
Parents: 2b8743727a35397be5dbbc12a537562c0d85041d
Message:Fixed issue 199, some optimizations for SVN access.

Changes:

File differences

src/IDF/Scm/Svn.php
3333
3434
3535
36
3637
3738
3839
......
190191
191192
192193
194
193195
194196
195197
......
197199
198200
199201
202
200203
201204
202205
......
273276
274277
275278
276
279
277280
278281
279282
private $assoc = array('dir' => 'tree',
'file' => 'blob');
private $commit=array();
public function __construct($repo, $username='', $password='')
{
*/
private function getCommitMessage($file, $rev='HEAD')
{
if (isset($commit[$rev])) return $commit[$rev];
$cmd = sprintf(Pluf::f('svn_path', 'svn').' log --xml --limit 1 --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($rev));
$xmlLog = IDF_Scm::shell_exec($cmd);
$xml = simplexml_load_string($xmlLog);
$commit[$rev]=(string) $xml->logentry->msg;
return (string) $xml->logentry->msg;
}
public function getCommit($rev='HEAD', $getdiff=false)
{
$res = array();
$cmd = sprintf(Pluf::f('svn_path', 'svn').' log --xml -v --username=%s --password=%s %s@%s',
$cmd = sprintf(Pluf::f('svn_path', 'svn').' log --xml --limit 1 -v --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo),

Archive Download the corresponding diff file

Page rendered in 0.08179s using 14 queries.