颠覆术语。项目、模块和根目录之间的区别

发布于 2024-08-31 12:53:11 字数 477 浏览 0 评论 0原文

我正在为我和一些同事建立一个存储库。

我手头有一个颠覆存储库,以及所有必需的权限。通常的目录框架已经为我设置好了(分支、标签和主干)。

现在我要为我和我的同事创建一个目录来放置我们的文件。我很确定放置它的正确位置是在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

彡翼 2024-09-07 12:53:11
`svn checkout http://host_name/svn_dir/repository_name/project/trunk proj`

上面一行中的 proj 是 trunk 中某个荣耀的目录吗?

不,它是存储库中的顶级目录,其中包含标签分支trunk 作为子目录。它已签出到本地文件夹 ./proj。据推测,写这篇文章的人不喜欢查看 tagsbranchestrunk 文件夹,而是查看 svn switch他们之间结帐。

`svn checkout http://host_name/svn_dir/repository_name/project/trunk proj`

Is proj in the above line some glorified directory in trunk?

No, it's a top-level directory in the repository, which has tags, branches, and trunk as sub-directories. It's checked out to a local folder ./proj. Presumably, whoever wrote this prefers not to check out tags, branches, and trunk folders, but to svn switch their checkout between them instead.

夜光 2024-09-07 12:53:11

在上面的命令中,“proj”只是将检出指定内容的本地目录(路径)。

有关详细信息,请参阅“svn help checkout”的输出。

您可能会发现阅读诸如 http://svnbook.red-bean.com/(使用 Subversion 进行版本控制,可在开放许可证下使用)。

设置 Subversion 服务器的方法有很多种。在某些情况下,单个存储库将包含多个项目(也许这些项目非常相关 - 例如作为主产品依赖项的库)。例如:

+ repository
    + project_1
    + project_2
    + project_3

我需要查看一些上下文来帮助您了解“模块”术语,但它可能只是相似 - 项目被分成多个模块(例如,库)。

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:

+ repository
    + project_1
    + project_2
    + project_3

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文