Indefero

Indefero Commit Details


Date:2008-08-29 12:59:53 (16 years 3 months ago)
Author:Loic d'Anterroches
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, svn
Commit:2c7b3e1e1a08849d276698dd6d9ef903df90f12f
Parents: ccc41c86b0677ff1d6d79ec1755c34a8ac5e2cab
Message:Cosmetic improvements.

Changes:

File differences

src/IDF/ScmFactory.php
3535
3636
3737
38
39
40
41
42
43
44
45
46
38
39
4740
4841
4942
50
43
44
45
5146
5247
5348
public static function getScm($request=null)
{
// Get scm type from project conf ; defaults to git
$scm = $request->conf->getVal('scm', 'git');
// CASE: git
if ($scm === 'git') {
return new IDF_Git($request->project->getGitRepository());
}
// CASE: svn
if ($scm === 'svn') {
switch ($request->conf->getVal('scm', 'git')) {
case 'svn':
return new IDF_Svn($request->conf->getVal('svn_repository'),
$request->conf->getVal('svn_username'),
$request->conf->getVal('svn_password'));
}
case 'git':
default:
return new IDF_Git($request->project->getGitRepository());
}
}
src/IDF/Views/Source.php
334334
335335
336336
337
337
338
338339
339340
340341
*/
private function getScmType($request)
{
return ucfirst($scm = $request->conf->getVal('scm', 'git'));
return mb_convert_case($request->conf->getVal('scm', 'git'),
MB_CASE_TITLE, 'UTF-8');
}
}

Archive Download the corresponding diff file

Page rendered in 0.08165s using 13 queries.