AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 475116
Accepted
Misiu
Misiu
Asked: 2013-02-05 00:23:41 +0800 CST2013-02-05 00:23:41 +0800 CST 2013-02-05 00:23:41 +0800 CST

从网络位置查看存储库

  • 772

我已经在我的计算机上成功安装了 VisualSVN 服务器,并在网络上设置了它的存储库根目录,以将所有文件保存在另一台计算机上。我的存储库根目录是\\file-server\svn\
我可以使用内置 Web 浏览器访问我的所有存储库https://localhost/svn/,但我想安装 WebSVN。

当我的存储库在本地驱动器上时,使用 WebSVN 查看它们没有问题,但是当我想访问网络位置时我遇到了问题。

在 config.php 我有这个配置:

 $config->parentPath('c:\\Repositories');
 //$config->parentPath('file:///\file-server\svn');

当我评论第一行并取消注释第二行时,出现以下错误:

Error running this command: " "C:\Program Files\VisualSVN Server\bin\svn" --non-interactive --config-dir /tmp log --xml --quiet "file:///file:////file-server/svn/TestRepo/@"" --limit 1
svn: E180001: Unable to connect to a repository at URL 'file:///file:/file-server/svn/TestRepo'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///file:/file-server/svn/TestRepo'

我试图将我的网络位置映射为驱动器,但这没有帮助。

是否有在 WebSVN 中设置网络位置的选项?

visualsvn-server
  • 2 2 个回答
  • 1010 Views

2 个回答

  • Voted
  1. sundeep
    2013-02-05T00:58:40+08:002013-02-05T00:58:40+08:00

    此处,WebSVN 尝试连接file:///file:////file-server/svn/TestRepo/@无效位置。文件协议连接到本地文件系统。尝试

    svn://file-server/svn/TestRepo
    

    或者,

    https://localhost/svn/TestRepo
    
    • 0
  2. Best Answer
    Misiu
    2013-02-05T03:04:25+08:002013-02-05T03:04:25+08:00

    我设法创建了临时解决方案:而不是使用parentPath我在循环中添加存储库:

    function getDirectoryList($d) {
        $r = array();
        $h = opendir($d);
        while ($f = readdir($h)) {
                if ($f != "." && $f != ".." && is_dir($d.'/'.$f)) {
                        $r[] = $f;
                }
        }
        closedir($h);
        return $r;
    }
    
    
    $files=getDirectoryList('file:////\file-server\svn');
    foreach($files as $dir) {
        $config->addRepository($dir, 'file:////\file-server\\svn\\'.$dir);
    }
    

    这是configclass.php在内部进行的相同循环,但是我修复了从网络位置添加存储库时的错误。

    如果有人知道如何parentPath改用此解决方案或如何调整configclass.php以正确添加存储库,请添加答案。

    • 0

相关问题

  • VisualSVN 服务器的性能

  • 使用 Trac 的提交后挂钩

  • Windows 上的 Trac 和 SVN 票证更新

  • 使用 SVN 进行 Web 开发

  • 有哪些方法可以备份 Windows VisualSVN 的存储库?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve