Indefero

Indefero Commit Details


Date:2010-04-27 16:28:52 (14 years 7 months ago)
Author:Thomas Keller
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:94a5464155aa03030712a95ca25fd8e50e8b810a
Parents: 18ba8d0ac55be7dbb09b0ac61d08cffce22cff6b
Message:* idf.php-dist: no need to configure a branch prefix any longer now that the project owner can define the master branch name * Monotone.php: change accordingly to use the configured master branch name and fallback to all branches ("*") if noone is found

Changes:

File differences

src/IDF/Scm/Monotone.php
366366
367367
368368
369
370
371
372
373
369374
370375
371376
372
373
377
374378
375379
376380
public static function getAnonymousAccessUrl($project)
{
$conf = $project->getConf();
if (false === ($branch = $conf->getVal('mtn_master_branch', false))
|| empty($branch)) {
$branch = "*";
}
return sprintf(
Pluf::f('mtn_remote_url'),
$project->shortname,
Pluf::f('mtn_branch_prefix'),
$project->shortname
$branch
);
}
src/IDF/conf/idf.php-dist
7676
7777
7878
79
80
79
8180
8281
8382
# Same as for git, you can have multiple repositories, one for each
# project or a single one for all the projects.
$cfg['mtn_repositories'] = '/home/mtn/repositories/%s.mtn';
$cfg['mtn_branch_prefix'] = 'com.indefero.projects.';
$cfg['mtn_remote_url'] = 'mtn://localhost/~%s/%s%s';
$cfg['mtn_remote_url'] = 'mtn://localhost/~%s/%s';
# Mercurial repositories path
#$cfg['mercurial_repositories'] = '/home/mercurial/repositories/%s';

Archive Download the corresponding diff file

Page rendered in 0.08009s using 13 queries.