Indefero

Indefero Commit Details


Date:2009-06-08 06:21:03 (15 years 6 months ago)
Author:Patrick Georgi
Branch: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:88a1bf9c946e1832aca7f08a59b63c7d134c4889
Parents: d014b36ee28eef1f3e87e3c7bfcfc68486ee8498
Message:Fixed issue 232, repository browser on SVN shows stacktraces

Changes:

File differences

src/IDF/Scm/Git.php
288288
289289
290290
291
291292
292293
293294
if ($totest == $file) {
return (object) array('perm' => $perm, 'type' => $type,
'size' => $size, 'hash' => $hash,
'fullpath' => $file,
'file' => $file);
}
}
src/IDF/Scm/Svn.php
183183
184184
185185
186
186
187187
188188
189189
......
232232
233233
234234
235
235
236236
237
238
239
237240
238241
239242
240
243
241244
242245
243246
244247
245
248
246249
247250
248
251
249252
250253
251254
......
331334
332335
333336
334
337
335338
336339
337340
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.$folder),
escapeshellarg($rev));
escapeshellarg($commit));
$xml = simplexml_load_string(shell_exec($cmd));
$res = array();
$folder = (strlen($folder)) ? $folder.'/' : '';
/**
* FIXME: Need to check the case of an inexisting file.
*/
public function getPathInfo($file, $rev=null)
public function getPathInfo($filename, $rev=null)
{
if ($rev == null) {
$rev = 'HEAD';
}
$cmd = sprintf(Pluf::f('svn_path', 'svn').' info --xml --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.$file),
escapeshellarg($this->repo.'/'.$filename),
escapeshellarg($rev));
$xml = simplexml_load_string(shell_exec($cmd));
$entry = $xml->entry;
$file = array();
$file['fullpath'] = $file;
$file['fullpath'] = $filename;
$file['hash'] = (string) $entry->repository->uuid;
$file['type'] = $this->assoc[(string) $entry['kind']];
$file['file'] = $file;
$file['file'] = $filename;
$file['rev'] = $rev;
$file['author'] = (string) $entry->author;
$file['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->commit->date));
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo),
escapeshellarg($rev));
escapeshellarg($commit));
$xmlRes = shell_exec($cmd);
$xml = simplexml_load_string($xmlRes);
$res['author'] = (string) $xml->logentry->author;

Archive Download the corresponding diff file

Page rendered in 0.07873s using 14 queries.