本地SVN服务器如何工作? [英] How local SVN server work?

查看:48
本文介绍了本地SVN服务器如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本教程创建一个 svn

I follow this tutorial to create a svn

http://www.guyrutenberg.com/2007/10/29/creating-local-svn-repository-home-repository/

但是运行后

$ svn import/home/user/project1 file:///home/user/svnrep/project1/trunk -m "项目1的初始导入"

我在 /home/user/svnrep/project1/trunk

我仍然可以使用 svn co/home/user/svnrep/project1/trunk 签出到任何文件夹,但是当我可以浏览实际文件时,它看起来与 repo 服务器不同trunk

I still can check out to any folder using svn co /home/user/svnrep/project1/trunk but It doesn't look the same as a repo server when I can browse the actual files inside trunk

像这个例子:http://jquery-ui.googlecode.com/svn/

有人可以向我解释它是如何工作的吗?

Can someone explain to my how it work ?

推荐答案

您不应在存储库的 URL 下找到与您的项目结构相似的任何内容,即使它是文件 URL 而不是 HTTP URL.你不应该关心你能在那里找到什么.SVN用数据库来实现仓库,你在仓库路径中找不到你项目的文件结构与文件结构匹配的.

You shouldn't find anything resembling your project's structure under the repository's URL, even if it is a file URL and not a HTTP URL. You shouldn't care for what you could find there. SVN implements the repository with a database, you will not find the file structure of your project matched with a file structure in the repository path.

你应该在svnrep下面找到一些文件夹,比如confdbhooks.但除非你知道自己在做什么,否则不要乱搞.

You should find some folders below svnrep like conf, db and hooks. But don't mess there unless you know what you do.

如果您想像使用 Google Code 存储库一样浏览存储库,则必须设置一个可以呈现 SVN 的 HTTP 服务器.Apache 通常用于此目的.例如,请参见此处,了解如何使用 Ubuntu 对其进行配置.或者,您只需使用 Tortoise 或 Subclipse 等 SVN 工具浏览存储库.

If you want to browse the repository like you could with the Google Code repository you have to setup an HTTP server that can present the SVN. An Apache is typically used for this. See for example here to see how it is configured with Ubuntu. Or you just browse the repository with a SVN tool like Tortoise or Subclipse.

这篇关于本地SVN服务器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆