Indefero

Indefero Commit Details


Date:2009-05-27 16:08:55 (15 years 6 months ago)
Author:Loic 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:d98dda645e15f5e7fdabdb647b3555af3b47447b
Parents: 44ea8f1817aa0a348020749bcd1f7bdd1b002b91
Message:Pushed the constructor into the backend implementation.

Changes:

File differences

src/IDF/Scm.php
7171
7272
7373
74
75
76
77
78
79
80
81
8274
8375
8476
*/
protected $cache = array();
/**
* Default constructor.
*/
public function __construct($repo, $project=null)
{
$this->repo = $repo;
$this->project = $project;
}
/**
* Returns an instance of the correct scm backend object.
src/IDF/Scm/Git.php
3535
3636
3737
38
39
40
41
42
43
3844
3945
4046
* *
* ============================================== */
public function __construct($repo, $project=null)
{
$this->repo = $repo;
$this->project = $project;
}
public function isAvailable()
{
try {
src/IDF/Scm/Mercurial.php
2727
2828
2929
30
31
32
33
34
35
3036
3137
3238
*/
class IDF_Scm_Mercurial extends IDF_Scm
{
public function __construct($repo, $project=null)
{
$this->repo = $repo;
$this->project = $project;
}
public static function factory($project)
{
$rep = sprintf(Pluf::f('mercurial_repositories'), $project->shortname);
src/IDF/Scm/Svn.php
4141
4242
4343
44
44
4545
4646
47
4748
4849
4950
......
115116
116117
117118
118
119
119120
120121
121122
122123
123
124
124125
125126
126127
private $commit=array();
public function __construct($repo, $username='', $password='')
public function __construct($repo, $project=null, $username='', $password='')
{
$this->repo = $repo;
$this->project = $project;
$this->username = $username;
$this->password = $password;
$this->cache['commitmess'] = array();
if (false !== ($rep=$conf->getVal('svn_remote_url', false))
&& !empty($rep)) {
// Remote repository
return new IDF_Scm_Svn($rep,
return new IDF_Scm_Svn($rep, $project,
$conf->getVal('svn_username'),
$conf->getVal('svn_password'));
} else {
$rep = sprintf(Pluf::f('svn_repositories'), $project->shortname);
return new IDF_Scm_Svn($rep);
return new IDF_Scm_Svn($rep, $project);
}
}

Archive Download the corresponding diff file

Page rendered in 0.08969s using 13 queries.