简体   繁体   English

将外部导入到我自己的SVN存储库中

[英]Importing external into my own SVN repository

I use TortoiseSVN to keep track of a few projects. 我使用TortoiseSVN跟踪一些项目。 One of my repositories (let's call it "Repo A") has an external which is a certain folder from another "Repo B", but from now on I need to commit certain changes to this folder and these changes are related only to Repo A. 我的一个存储库(我们称其为“ Repo A”)具有一个外部文件夹,该文件夹是另一个“ Repo B”的某个文件夹,但是从现在开始,我需要对该文件夹进行某些更改,并且这些更改仅与Repo A相关。

I could, of course, add a manual copy of the folder to my repository and start committing, but this comes with two disadvantages: 我当然可以将文件夹的手动副本添加到我的存储库中并开始提交,但这有两个缺点:

  • It's a rather large folder, and this will consume more disk space as SVN doesn't know the folder is simply a copy from another Repo (at a certain rev. number) 这是一个相当大的文件夹,并且会消耗更多的磁盘空间,因为SVN并不知道该文件夹仅仅是另一个Repo(以某个版本号)的副本。
  • The previous commit logs to this folder (from Repo B) won't show up when viewing the history for Repo A. 查看存储库A的历史记录时,不会显示到以前从该存储库B到该文件夹​​的提交日志。

What I want to do basically is to "fork" the folder into another Repository. 我要做的基本上是将文件夹“分叉”到另一个存储库中。 Is there an intuitive way of doing this? 是否有一种直观的方法?

  • You can't physically move folder from repo to repo and don't have some additional space "wasted" - repositories are independent entities and all it's objects must be kept in it 您不能物理地将文件夹从一个仓库移到另一个仓库,也没有“浪费”一些额外的空间-仓库是独立的实体,所有对象都必须保存在其中
  • But you can have this folder in RepoA with all history from RepoB: just perform dump|load cycle for folder in question( svnadmin dump + svndumpfilter or svnrdump dump for getting dump of repo's part) 但是您可以在RepoA中拥有此文件夹以及RepoB中的所有历史记录:只需对有问题的文件夹执行dump | load循环( svnadmin dump + svndumpfiltersvnrdump dump获取repo的一部分转储)

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

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