颠覆术语。项目、模块和根目录之间的区别
我正在为我和一些同事建立一个存储库。
我手头有一个颠覆存储库,以及所有必需的权限。通常的目录框架已经为我设置好了(分支、标签和主干)。
现在我要为我和我的同事创建一个目录来放置我们的文件。我很确定放置它的正确位置是在 trunk 中。
现在,在教程中,我看到诸如“模块”和“项目”之类的术语,例如
签出项目 - svn checkout
svn checkout http://host_name/svn_dir/repository_name/project/trunk proj
是上面一行中的 proj
后备箱中有一些荣耀的目录吗?在为我和我的同事创建目录时,除了在 trunk、mkdir 上签出然后提交之外,我还应该做其他事情吗?
项目、主干目录和模块之间有什么区别?
I'm setting up a repository for me and some colleagues.
I have a subversion repository at hand, and all required rights. The usual directory-skeleton has been set up for me (branches, tags and trunk).
Now I'm about to create a directory for me and my colleagues to put our files in. I'm quite sure the right place to put it is in trunk.
Now here and there in tutorials, I see terms like "modules" and "projects" such as in
Checking Out a Project - svn checkout
svn checkout http://host_name/svn_dir/repository_name/project/trunk proj
Is proj
in the above line some glorified directory in trunk? Should I do something else than a checkout on trunk, mkdir and then commit when creating a directory for me and my colleagues?
Whats the difference between a project, a directory in trunk and a module?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,它是存储库中的顶级目录,其中包含
标签
、分支
和trunk
作为子目录。它已签出到本地文件夹./proj
。据推测,写这篇文章的人不喜欢查看tags
、branches
和trunk
文件夹,而是查看svn switch
他们之间结帐。No, it's a top-level directory in the repository, which has
tags
,branches
, andtrunk
as sub-directories. It's checked out to a local folder./proj
. Presumably, whoever wrote this prefers not to check outtags
,branches
, andtrunk
folders, but tosvn switch
their checkout between them instead.在上面的命令中,“proj”只是将检出指定内容的本地目录(路径)。
有关详细信息,请参阅“svn help checkout”的输出。
您可能会发现阅读诸如 http://svnbook.red-bean.com/(使用 Subversion 进行版本控制,可在开放许可证下使用)。
设置 Subversion 服务器的方法有很多种。在某些情况下,单个存储库将包含多个项目(也许这些项目非常相关 - 例如作为主产品依赖项的库)。例如:
我需要查看一些上下文来帮助您了解“模块”术语,但它可能只是相似 - 项目被分成多个模块(例如,库)。
In the above command "proj" is simply the local directory (path) where the specified content will be checked out to.
See the output of "svn help checkout" for more information.
You may find it useful to read a book such as http://svnbook.red-bean.com/ (Version Control with Subversion, available under an Open license).
There are many ways to setup a subversion server. In some cases, a single repository will contain multiple projects (perhaps the projects are very related - such as libraries which are dependencies of the primary product). For example:
I'd need to see some context to help you with the "modules" term, but it's likely just similar - where a project is split into multiple modules (for example, libraries).