dongxi1320 2016-06-21 12:50
浏览 210

WebSVN无法识别存储库

I am trying to install WebSVN. Everything worked fine so far but my repositories are not recognized.

Inside my user folder /home/svn (svn is the user name) I have several repositories and I want all of them to appear in WebSVN.

This is my config.php:

<?php

$config->setSVNCommandPath('/usr/bin');
$config->setDiffPath('/usr/bin');
$config->setEnscriptPath('/usr/bin');
$config->setSedPath('/bin');
$config->setTarPath('/bin');
$config->setGZipPath('/bin');
$config->parentPath('/home/svn');
$config->addTemplatePath($locwebsvnreal.'/templates/calm/');
$config->addTemplatePath($locwebsvnreal.'/templates/BlueGrey/');
$config->addTemplatePath($locwebsvnreal.'/templates/Elegant/');
$config->addInlineMimeType('text/plain');
$config->setMinDownloadLevel(2);
$config->useGeshi();

set_time_limit(0);
$config->expandTabsBy(8);

$extEnscript[".pl"] = "perl";
$extEnscript[".py"] = "python";
$extEnscript[".sql"] = "sql";
$extEnscript[".java"] = "java";
$extEnscript[".html"] = "html";
$extEnscript[".xml"] = "html";
$extEnscript[".thtml"] = "html";
$extEnscript[".tpl"] = "html";
$extEnscript[".sh"] = "bash";

If I open WebSVN in a browser, it shows an HTTP ERROR 500. If I change the line $config->parentPath('/home/svn'); to $config->parentPath('/home'); it keeps telling me:

Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.

Am I missing something?

  • 写回答

3条回答 默认 最新

  • douhuan1901 2016-06-21 20:21
    关注

    In addition to telling WebSVN where to find your repositories with parentPath (which just lets you shorten later paths), you have to create one entry (using addRepository) per repository that you want to display on the WebSVN home page.

    The addRepository() function takes two arguments. The first is the visible name, the second is the path to the SVN repository.

    Reference link: Use Subversion, Apache, and WebSVN to view your repositories

    (It's been a while since I setup WebSVN, but I did have to list each one individually.)

    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP