Indefero

Indefero Commit Details


Date:2011-08-19 15:01:55 (13 years 4 months ago)
Author:Patrick Georgi
Branch:develop, feature.webrepos, release-1.3
Commit:aa2868eb17e776371b342184b4f552a40518138a
Parents: a2c832a130e6063201a627efa9361f0d80f97cd9
Message:Add basic framework for web based repository access

/p/$project/source/repo/ is assigned to a method that
takes care of providing repository access.
For now, this results in an exception on all SCMs.
Changes:

File differences

src/IDF/Scm.php
497497
498498
499499
500
501
502
503
504
500505
501506
{
return 0;
}
public function repository($request, $match)
{
throw new Exception('This repository does not support web based repository access');
}
}
src/IDF/Views/Source.php
132132
133133
134134
135
136
137
138
139
140
135141
136142
137143
$request);
}
public function repository($request, $match)
{
$scm = IDF_Scm::get($request->project);
return $scm->repository($request, $match);
}
public $treeBase_precond = array('IDF_Precondition::accessSource',
'IDF_Views_Source_Precondition::scmAvailable',
'IDF_Views_Source_Precondition::revisionValid');
src/IDF/conf/urls.php
245245
246246
247247
248
249
250
251
252
248253
249254
250255
'model' => 'IDF_Views_Source_Svn',
'method' => 'changelogRev');
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/repo/(.*)$#',
'base' => $base,
'model' => 'IDF_Views_Source',
'method' => 'repository');
// ---------- WIKI -----------------------------------------
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/$#',

Archive Download the corresponding diff file

Page rendered in 0.08645s using 13 queries.