Indefero

Indefero Commit Details

Date:2008-09-12 12:36:41 (6 years 19 days 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
Commit:2b5f97b3623a53e483cf8cfe82fe846fe8a71178
Parents: b881ad1c8fbbc0c86ab343c99ab660f2cd41840c
Message:Cleaned the code to have consistent style.

Changes:
Msrc/IDF/Views/Source/Svn.php (2 diffs)

File differences

src/IDF/Views/Source/Svn.php
3535
3636
3737
38
39
4038
39
4140
42
43
41
4442
4543
46
4744
48
45
46
4947
50
51
48
5249
5350
54
5551
56
52
53
5754
5855
59
60
6156
6257
6358
......
7065
7166
7267
73
74
7568
69
7670
77
78
79
80
71
72
73
74
8175
82
83
76
8477
8578
8679
87
88
8980
9081
9182
public function treeRev($request, $match)
{
$prj = $request->project;
// Redirect to tree base if not svn
if ($request->conf->getVal('scm', 'git') != 'svn') {
// Redirect to tree base if not svn
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::treeBase',
array($prj->shortname, $prj->getScmRoot()));
array($prj->shortname, $prj->getScmRoot()));
return new Pluf_HTTP_Response_Redirect($url);
}
// Get revision value
if (!isset($request->REQUEST['rev']) or trim($request->REQUEST['rev']) == '') {
if (!isset($request->REQUEST['rev'])
or trim($request->REQUEST['rev']) == '') {
$scmRoot = $prj->getScmRoot();
}
else {
} else {
$scmRoot = $request->REQUEST['rev'];
}
// Get source if not /
if (isset($request->REQUEST['sourcefile']) and trim($request->REQUEST['sourcefile']) != '') {
if (isset($request->REQUEST['sourcefile'])
and trim($request->REQUEST['sourcefile']) != '') {
$scmRoot .= '/'.$request->REQUEST['sourcefile'];
}
// Redirect
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::treeBase',
array($prj->shortname, $scmRoot));
return new Pluf_HTTP_Response_Redirect($url);
public function changelogRev($request, $match)
{
$prj = $request->project;
// Redirect to tree base if not svn
if ($request->conf->getVal('scm', 'git') != 'svn') {
// Redirect to tree base if not svn
$scmRoot = $prj->getScmRoot();
}
// Get revision value if svn
else {
if (!isset($request->REQUEST['rev']) or trim($request->REQUEST['rev']) == '') {
} else {
// Get revision value if svn
if (!isset($request->REQUEST['rev'])
or trim($request->REQUEST['rev']) == '') {
$scmRoot = $prj->getScmRoot();
}
else {
} else {
$scmRoot = $request->REQUEST['rev'];
}
}
// Redirect
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::changeLog',
array($prj->shortname, $scmRoot));
return new Pluf_HTTP_Response_Redirect($url);

Archive Download the corresponding diff file