Indefero

Indefero Commit Details


Date:2011-08-21 00:44:19 (13 years 4 months ago)
Author:Patrick Georgi
Branch:feature.webrepos
Commit:dacbf0707b9222ad724c03bec03186103bf58a9e
Parents: 34c9d04a35f710dc9512d4f4a960ac2487429891
Message:Move http repository access to /r/$project

It's a shorter URL and also helps git derive the right name
for the clone.
Changes:

File differences

src/IDF/Middleware.php
4444
4545
4646
47
47
4848
4949
5050
    function process_request(&$request)
    {
        $match = array();
        if (preg_match('#^/(?:api/p|p)/([\-\w]+)/?#', $request->query, $match)) {
        if (preg_match('#^/(?:api/p|p|r)/([\-\w]+)/?#', $request->query, $match)) {
            try {
                $request->project = IDF_Project::getOr404($match[1]);
            } catch (Pluf_HTTP_Error404 $e) {
src/IDF/conf/urls.php
245245
246246
247247
248
248
249249
250250
251251
               'model' => 'IDF_Views_Source_Svn',
               'method' => 'changelogRev');
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/repo/(.*)$#',
$ctl[] = array('regex' => '#^/r/([\-\w]+)/(.*)$#',
               'base' => $base,
               'model' => 'IDF_Views_Source',
               'method' => 'repository');

Archive Download the corresponding diff file

Page rendered in 0.11613s using 13 queries.