VisualSVN - 从单独的存储库添加?
我在 Visual Studio 2010 中有一个解决方案,该解决方案存在于一个存储库中。然后,我想从单独存储库向该解决方案添加一个项目。
我尝试右键单击 VS > 中的解决方案添加现有项目,但当它添加到解决方案时,所有 SVN 绑定都在 Visual Studio 中消失。
是否可以将另一个存储库中的项目添加到我当前的解决方案中?谢谢。 顺便说一句,我使用 VisualSVN / TortoiseSVN。
I have a solution in Visual Studio 2010 that exists in one repo. I then want to add a project to this solution from a separate repo.
Ive tried right clicking on the solution in VS > Add existing project, but when it adds to the solution, all of the SVN bindings have disappeared in Visual Studio.
Is it possible to add a project from another repo into my current solution? Thanks.
BTW im using VisualSVN / TortoiseSVN.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
svn:externals
< /a> 属性来提取单独存储库的一部分。请注意,您将失去原子提交的能力。You can use the
svn:externals
property to pull in part of a separate repository. Note that you lose the ability to commit atomically.您尝试做的事情违反了一些基本的 SVN 使用原则。每个存储库都应该是完整且完整的工作代码源,因此当另一个开发人员下载代码时,他拥有工作所需的一切(外部依赖项除外,如果有的话)。您似乎愿意强迫开发人员为项目制作一个文件系统难题,在一般情况下,这会导致从多个存储库到多个文件夹的复杂检出。
如果您想将另一个存储库中的目录复制到您的存储库中,我建议您执行以下操作:
记住,一旦更新了单独的存储库,就不会再更新反映在您的存储库中。您必须制作补丁或更好地使用
merge
命令。What you are trying to do violates some of the basic SVN usage principles. Each repository is supposed to be an integer and intact source of working code, so when another developer downloads the code he's got everything needed to work (except external dependencies, if any). You seem to be willing to force developers to make a filesystem puzzle of projects, that in the general case results in complicated check-outs from several repositories into several folders.
If you want to make a copy of a directory from another repository into your repository, I suggest you to do the following:
Remember, once the separate repository is updated, updated won't be reflected on your repo. You'll have to make patches or better use
merge
command.