<?php
/** @file config.php
* Configuration file for ViewSVN.
*
* DO NOT EDIT THIS FILE. Instead, create localconfig.php and add settings you
* need to override in it.
*
* Only thing you need to have in localconfig.php is $config['projects'] as
* shown below. For example, if you have projects 'projectfoo' and 'projectbar' in
* local svnserve at address svn://localhost/projectfoo (bar respectively), and
* they share authentication, you can write this:
*
* $config['svnroot'] = 'svn://localhost/';
* $config['svnusername'] = 'please';
* $config['svnpassword'] = 'edit';
* $config['projects'] = array(
* 'projectfoo' => array('description' => 'foo mane padme hum'),
* 'projectbar' => array('description' => 'Extension pack for foo'),
* );
*/
// This path may not contain spaces, if it does, you may want to wrap it in
// escapeshellarg(), however, that does not seem to work on windows.
//$config['svncommand'] = '/usr/bin/svn';
// Global setting for projects
//$config['svnroot'] = 'svn://localhost/';
//$config['svnusername'] = 'viewsvn';
//$config['svnpassword'] = 'viewsvn';
// Global svn parameters that are added for all commands. Some environments may
// require tweaking of these.
$config['svn_global_parameters'] = '--non-interactive --no-auth-cache';
// Optional global "start path" for projects (from index page)
//$config['startpath'] = '/trunk/';
// Project-specific settings
/*
$config['projects'] = array(
'projectname' => array(
// optional
'description' => 'some project',
// optional if global svnroot is set (used root is svnroot/projectname then)
'root' => 'svn://localhost/projectname',
// optional if global svnusername and svnpassword are set
'username' => '', 'password' => '',
// optional start path for browse, default is /
'startpath' => '/trunk/',
),
);
*/
// $config['cachedir'] = 'cache/';
// Rest of this file should contain reasonable defaults, so you can leave them
// as-is for now, and read them later.
// Show "generated by ViewSVN" with link to ViewSVN's homepage?
$config['ad'] = true;
// Allow annotation?
$config['enable_annotate'] = true;
// Allow diffing of paths?
$config['enable_diff'] = true;
// Allow downloading of paths as .tar.bz2 (unsecure)?
// Note: you need to create cache-directory that is writable by the webserver.
// Eg. $ mkdir cache/; chmod 777 cache
$config['enable_download'] = false;
// Allow recursive list of files?
$config['enable_list'] = true;
// Allow log viewing?
$config['enable_log'] = true;
// Enable showing of SVN properties while browsing
$config['enable_proplist'] = false;
// RSS feeds for changes?
$config['enable_rss'] = true;
$config['rss_titleformat'] = 'r${rev}: ${msg_snippet} (${author})';
$config['rss_bodyformat'] = '${date} ${time}<br/>${msg}<br/>Author: ${author}<br/>${changed_paths}';
// Limit revisions for log viewing
$config['log_limit'] = 100;
// RSS feed item limit
$config['rss_limit'] = 50;
//$config['rss_ttl'] = 60*6 + 7;
// Format for browse's changed column
// %F = YYYY-MM-DD %Y%m%d = YYYYMMDD
// See "man 3 strftime" for more formats
$config['browse_changed_format'] = '%F';
// Whether to display a footer row for browse's table, containing:
// N subdirs, N files | last rev | last change | last author | last log entry
$config['browse_table_footer'] = true;
// Enable GeSHi? (see doc/ for more information)
$config['enable_geshi'] = false;
$config['geshi_path'] = 'include/geshi/geshi.php';
// Location on Debian (package php-geshi):
//$config['geshi_path'] = '/usr/share/php-geshi/geshi.php';
// URL to CSS stylesheet. Relative to (external) ViewSVN root.
$config['style'] = 'styles/default.css';
$config['debug'] = false;
// If set, links authors to a custom URL
//$config['author_link'] = 'http://sourceforge.net/users/%s/';
// Rewrite URLs to be prettier?
// 0 = no
// 1 = mod_rewrite (see and edit .htaccess)
// 2 = internal (no need to edit .htaccess)
//
// Example URLs:
// 0 http://example.com/viewsvn/?do=browse&project=foo&path=/trunk/&rev=50
// 1 http://example.com/viewsvn/browse/foo:/trunk/@50
// 2 http://example.com/viewsvn/index.php/browse/foo:/trunk/@50
$config['rewrite'] = 0;
// Include if exists
@include_once('localconfig.php');