简体   繁体   English

从本地存储库到远程存储库的SVN外部

[英]SVN Externals From Local Repository to Remote Repository

I have a project hosted on svn://foo.com . 我在svn://foo.com上托管了一个项目。

I want to use an svn:external file from a local repository. 我想使用本地存储库中的svn:external文件。 I want others who checkout a working copy to also download the external files. 我希望签出工作副本的其他人也下载外部文件。 What do I need to add to the svn:externals file (in my wc) to achieve this? 我需要在svn:externals文件中添加什么(在我的wc中)以实现此目的?

So, you want that people who checkout your project also retrieve your external file. 因此,您希望签出项目的人员也可以检索您的外部文件。 Using command line, on a Linux distribution, I would do that: 使用命令行,在Linux发行版上,我可以这样做:

cd path/to/my/wc
svn propedit svn:externals .

svn will launch your favorite editor here, with a buffer open containing the current contents of the svn:externals property.You can add multiple values to a property easily here by entering one value per line. svn将在此处启动您最喜欢的编辑器,并打开一个包含svn:externals属性当前内容的缓冲区。您可以在此处通过每行输入一个值来轻松地向属性添加多个值。

According to your example, I would append to this buffer: 根据您的示例,我将附加到此缓冲区:

myExternalFileName svn://foo.com/myExternalFileName

Finally, you just have to commit your changes: 最后,您只需要提交更改即可:

svn ci . -m "Edited svn:externals... My wonderful message"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM