Indefero

Indefero Commit Details


Date:2011-01-09 06:47:07 (13 years 11 months ago)
Author:Loïc d'Anterroches
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:a7b62a30ff1635991d665443ef01830742924356
Parents: 431e199c1cb04624b8bde3ce4b87df8a5e592150
Message:Correctly mark a Subversion repository as empty when at revision 0.

Changes:

File differences

src/IDF/Scm/Svn.php
4848
4949
5050
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
5170
5271
5372
public function isAvailable()
{
$cmd = sprintf(Pluf::f('svn_path', 'svn').' info --xml --username=%s --password=%s %s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xmlInfo = self::shell_exec('IDF_Scm_Svn::isAvailable', $cmd);
try {
$xml = simplexml_load_string($xmlInfo);
}
catch (Exception $e) {
return false;
}
if (!isset($xml->entry->commit['revision'])) {
return false;
}
if (0 == (int)$xml->entry->commit['revision']) {
return false;
}
return true;
}

Archive Download the corresponding diff file

Page rendered in 0.08448s using 13 queries.