gpt4 book ai didi

svn - 我怎样才能让 subversion 从其他存储库中 check out 项目?

转载 作者:行者123 更新时间:2023-12-01 07:06:17 25 4
gpt4 key购买 nike

我最近正在处理一个 subversion 项目,该项目不仅从我正在使用的存储库中 check out 代码,而且还从不同服务器上的单独存储库中 check out 代码。

如何配置我的存储库来执行此操作?

我在 Linux 上使用 subversion 客户端 1.3.2 版,我也可以在 Windows 中访问 TortoiseSVN 1.4.8 版(基于 svn 1.4.6 版)。

最佳答案

svn:externals :

Sometimes it is useful to construct a working copy that is made out of a number of different checkouts. For example, you may want different subdirectories to come from different locations in a repository, or perhaps from different repositories altogether. You could certainly setup such a scenario by hand—using svn checkout to create the sort of nested working copy structure you are trying to achieve. But if this layout is important for everyone who uses your repository, every other user will need to perform the same checkout operations that you did.

Fortunately, Subversion provides support for externals definitions. An externals definition is a mapping of a local directory to the URL—and possibly a particular revision—of a versioned resource. In Subversion, you declare externals definitions in groups using the svn:externals property. You can create or modify this property using svn propset or svn propedit (see the section called “Why Properties?”). It can be set on any versioned directory, and its value is a multi-line table of subdirectories (relative to the versioned directory on which the property is set) and fully qualified, absolute Subversion repository URLs...

关于svn - 我怎样才能让 subversion 从其他存储库中 check out 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74865/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com