websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 24... | Line 24... | |
|
| |
// --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP --- |
// --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP --- | |
|
| |
// {{{ PLATFORM CONFIGURATION --- |
// {{{ PLATFORM CONFIGURATION --- | |
|
| |
// Uncomment the next line if you're running a windows server |
// Configure the path to your subversion config file | |
// |
// (e.g. if accepting certificates is required when using repositories via https) | |
// $config->setServerIsWindows(); |
// $config->setConfigPath('/tmp'); | |
|
| |
// Configure these lines if your commands aren't on your path. |
// Configure these lines if your commands aren't on your path. | |
// |
// | |
// $config->setSVNCommandPath('Path/to/svn and svnlook/ e.g. c:\\program files\\subversion\\bin'); |
// $config->setSVNCommandPath('Path/to/svn and svnlook/ e.g. c:\\program files\\subversion\\bin'); | |
// $config->setDiffPath('Path/to/diff/command/'); |
// $config->setDiffPath('Path/to/diff/command/'); | |
Line 42... | Line 42... | |
// For delivered tarballs, if option enabled... |
// For delivered tarballs, if option enabled... | |
// $config->setTarPath('Path/to/tar/command/'); |
// $config->setTarPath('Path/to/tar/command/'); | |
|
| |
// For delivered GZIP'd files and tarballs, if option enabled... |
// For delivered GZIP'd files and tarballs, if option enabled... | |
// $config->setGZipPath('Path/to/gzip/command/'); |
// $config->setGZipPath('Path/to/gzip/command/'); | |
| ||
// download folder/file zipped ... | ||
// $config->setZipPath('Path/to/zip/command/'); | ||
|
| |
// }}} |
// }}} | |
|
| |
// {{{ REPOSITORY SETUP --- |
// {{{ REPOSITORY SETUP --- | |
|
| |
Line 71... | Line 74... | |
// |
// | |
// Remote repositories (without and with optional group): |
// Remote repositories (without and with optional group): | |
// |
// | |
// $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', NULL, 'username', 'password'); |
// $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', NULL, 'username', 'password'); | |
// $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'group', 'username', 'password'); |
// $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'group', 'username', 'password'); | |
// | ||
// Display Part of a repository as if it was a repository. | ||
// | ||
// Local repositories (without and with optional group): | ||
// | ||
// $config->addRepositorySubpath('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)', 'subpath'); | ||
// $config->addRepositorySubpath('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)', 'subpath', 'group'); | ||
// | ||
// Remote repositories (without and with optional group): | ||
// | ||
// $config->addRepositorySubpath('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'subpath', NULL, 'username', 'password'); | ||
// $config->addRepositorySubpath('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'subpath', 'group', 'username', 'password'); | ||
// |
// | |
// To use the parent path method (without and with optional group), uncomment the next line |
// To use the parent path method (without and with optional group), uncomment the next line | |
// and replace the path with your one. You can call the function several times if you have several parent paths. |
// and replace the path with your one. You can call the function several times if you have several parent paths. | |
// Note that in this case the path is a filesystem path. |
// Note that in this case the path is a filesystem path. | |
// |
// | |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)'); |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)'); | |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)', 'group'); |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)', 'group'); | |
// | ||
// To exclude a repository from being added by the parentPath method uncomment the next line | ||
// and replace the path with your one. You can call the function several times if you have several paths to exclude. | ||
// | ||
// $config->addExcludedPath('Path/to/parent/excludedRep (e.g. c:\\svn\\excludedRep)'); | ||
// |
// | |
// To add only a subset of repositories specified by the parent path you can call the function with a pattern. |
// To add only a subset of repositories specified by the parent path you can call the function with a pattern. | |
// |
// | |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)', 'group', '/^beginwith/'); |
// $config->parentPath('Path/to/parent (e.g. c:\\svn)', 'group', '/^beginwith/'); | |
|
| |
Line 109... | Line 129... | |
// By default, WebSVN displays a tree view onto the current directory. You can however |
// By default, WebSVN displays a tree view onto the current directory. You can however | |
// choose to display a flat view of the current directory only, which may make the display |
// choose to display a flat view of the current directory only, which may make the display | |
// load faster. Uncomment this line if you want that. |
// load faster. Uncomment this line if you want that. | |
|
| |
// $config->useFlatView(); |
// $config->useFlatView(); | |
| ||
// By default, WebSVN displays subfolders first and than the files of a directory, | ||
// both alphabetically sorted. | ||
// To use alphabetic order independent iof folders and files uncomment this line. | ||
| ||
// $config->setAlphabeticOrder(true); | ||
|
| |
// By default, WebSVN displays the information of the last modification |
// By default, WebSVN displays the information of the last modification | |
// (revision, age and author) for each entry in an extra column. |
// (revision, age and author) for each entry in an extra column. | |
// To disable that uncomment this line. |
// To disable that uncomment this line. | |
|
| |
// $config->setShowLastModInListing(false); |
// $config->setShowLastModInListing(false); | |
| ||
// By default, WebSVN displays the age of the last modification. | ||
// Alternativly the date of the last modification can be shown. | ||
// To show dates instead of ages uncomment this line. | ||
| ||
// $config->setShowAgeInsteadOfDate(false); | ||
|
| |
// By default, WebSVN displays the a form to select an other repository. |
// By default, WebSVN displays the a form to select an other repository. | |
// If you have a lot of repositories this slows done the script considerably. | ||
// To disable that uncomment this line. |
// To disable that uncomment this line. | |
|
| |
// $config->setShowRepositorySelectionForm(false); |
// $config->setShowRepositorySelectionForm(false); | |
|
| |
// }}} |
// }}} | |
Line 156... | Line 189... | |
// output encodings are taken from your locale informations. Override these if they aren't correct. |
// output encodings are taken from your locale informations. Override these if they aren't correct. | |
|
| |
// Set the default language. If you want English then don't do anything here. |
// Set the default language. If you want English then don't do anything here. | |
// |
// | |
// $config->setDefaultLanguage('en'); |
// $config->setDefaultLanguage('en'); | |
| ||
// Ignore the user supplied accepted languages to choose reasonable default language. | ||
// If you want to force the default language - regardless of the client - uncomment the following line. | ||
// | ||
// $config->ignoreUserAcceptedLanguages(); | ||
|
| |
// }}} |
// }}} | |
|
| |
// {{{ MULTIVIEWS --- |
// {{{ MULTIVIEWS --- | |
|
| |
Line 232... | Line 270... | |
// ASCII via WebSVN). |
// ASCII via WebSVN). | |
|
| |
// $contentType['.c'] = 'text/plain'; // Create a new association |
// $contentType['.c'] = 'text/plain'; // Create a new association | |
// $contentType['.doc'] = 'text/plain'; // Modify an existing one |
// $contentType['.doc'] = 'text/plain'; // Modify an existing one | |
// unset($contentType['.m']); // Remove a default association |
// unset($contentType['.m']); // Remove a default association | |
| ||
// If you want to selectively override one or more MIME types to display inline | ||
// (e.g., the svn:mime-type property is something like text/plain or text/xml, or | ||
// the file extension matches an entry in $contentType), you can choose to ignore | ||
// one or more specific MIME types. This approach is finer-grained than ignoring | ||
// all svn:mime-type properties, and displaying matching files inline such that | ||
// they are highlighted correctly. (Regular expression matching is used.) | ||
| ||
$config->addInlineMimeType("text/plain"); | ||
// $config->addInlineMimeType("text/*"); | ||
|
| |
// }}} |
// }}} | |
|
| |
// {{{ TARBALLS --- |
// {{{ TARBALLS --- | |
|
| |
Line 243... | Line 291... | |
// |
// | |
// Uncomment the line below to offer a tarball download option across all your |
// Uncomment the line below to offer a tarball download option across all your | |
// repositories. |
// repositories. | |
// |
// | |
// $config->allowDownload(); |
// $config->allowDownload(); | |
// | ||
// Set download modes | ||
// $config->setDefaultFileDlMode('plain'); | ||
// $config->setDefaultFolderDlMode('gzip'); | ||
// |
// | |
// Change the line below to set the temporary directory where to store generated tarball. |
// Change the line below to set the temporary directory where to store generated tarball. | |
// |
// | |
// $config->setTarballTmpDir('temp'); |
// $config->setTarballTmpDir('temp'); | |
// |
// | |
Line 316... | Line 368... | |
// Note that extensions are case sensitive. |
// Note that extensions are case sensitive. | |
|
| |
// Uncomment this line if you want to use GeSHi to colourise your file listings |
// Uncomment this line if you want to use GeSHi to colourise your file listings | |
// |
// | |
$config->useGeshi(); |
$config->useGeshi(); | |
| ||
// GeSHi need to be told what the contents of a file are so that it can be colourised | ||
// correctly. WebSVN includes a predefined list of mappings from file extension to GeSHi | ||
// languages (viewable in setup.php). | ||
// | ||
// Here you should add and other extensions not already listed or redefine the default ones. eg: | ||
// | ||
// $extGeshi['pascal'] = array('p', 'pas'); | ||
// | ||
// Note that extensions are case sensitive. | ||
|
| |
// }}} |
// }}} | |
|
| |
// {{{ RSSFEED --- |
// {{{ RSSFEED --- | |
|
|