Subversion 存储库工作副本结构的最佳实践? [英] Best practice for structure of Subversion repository working copy?

查看:36
本文介绍了Subversion 存储库工作副本结构的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习如何使用 Subversion 来构建我的 Web 应用程序,请耐心等待.

I'm just getting started learning how to use Subversion for building my web applications, so bear with me.

这是我如何设置它:

  • 我的一个域将托管我所有项目的存储库.我有标准的标签/分支/树干结构.它位于公共文件夹中,因此其他开发者可以访问它.
  • 我将在我的实时服务器上有一个文件夹,其中包含应用程序的每个版本,并且我将在 Web 目录中有一个指向当前版本的符号链接.这样,当我发布应用程序更新时,我会将其导出到发布目录,然后切换符号链接,以便更改立即在线.

这是我的问题:

项目的本地工作副本的最佳结构是什么?我将经常在分支和主干上工作,所以我应该检查整个存储库结构(标签/主干/分支)还是只将主干和每个分支分别检查到不同的文件夹中?

What is the best structure for the local working copy of the project? I'm going to be working on both branches and the trunk quite frequently, so should I check out the entire repository structure (tags/trunk/branches) or just check out the trunk and each branch individually into different folders?

此外,如果我说的有关如何设置它的任何内容看起来很奇怪或错误的方法,请告诉我(我是新手!).

Also, if anything I said about how I have it set up seems strange or a wrong way to do it, let me know (I'm new to this!).

推荐答案

如果您真的喜欢,可以查看整个存储库.由你决定.就个人而言,我只会查看我正在积极开发的部分.那样的话,svn update"不会永远持续下去,而且我自己的硬盘上占用的空间也更少.至于在存储库中的位置之间切换,有一个特殊的命令:svn switch"(缩写为svn sw").使用svn help switch"或查看链接以获取更多信息:

You can check out the entire repository if you really feel like it. It's up to you. Personally, I would just check out the parts that I'm actively working on. That way, "svn update" doesn't take forever, and less space is taken up on my own hard drive. As for switching between locations in your repository, there is a special command for that: "svn switch" (abbreviated "svn sw"). Use "svn help switch" or see the link for more info:

http://svnbook.red-bean.com/en/1.1/ch04s05.html

这篇关于Subversion 存储库工作副本结构的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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