[英]How to export a svn project into another svn repository?
I have a readonly access to a SVN project. 我只能访问SVN项目。 I checked out the project, and now I want to work on local copy (and want to version it along the way, but I cannot in the same SVN because I do not have access, instead I would have just created a branch) So, I create a new SVN repository, and now I want to import the checked out directory into the new SVN trunk.
我检查了项目,现在我想在本地副本上工作(并且希望一路上版本,但我不能在同一个SVN,因为我没有访问权限,而是我刚刚创建了一个分支)所以,我创建了一个新的SVN存储库,现在我想将签出的目录导入新的SVN中继。
The problem is every directory (and subdirectory so-forth) in my checked-out folder already has a hidden .svn folder (from the previous repo). 问题是我的签出文件夹中的每个目录(和子目录这样)已经有一个隐藏的.svn文件夹(来自之前的仓库)。 When I try to import into the new repo, it complains that it is already sub-versioned!
当我尝试导入新的repo时,它抱怨它已经是子版本的!
If I remove .svn from each folder (and nested folders within) that would solve my problem, there has to be better way? 如果我从每个文件夹中删除.svn(以及其中的嵌套文件夹)可以解决我的问题,那么必须有更好的方法吗?
您正在寻找“svn export”,它可以实现此目的(删除所有.svn目录)。
Sounds like a " Vendor Branch ". 听起来像是“ 供应商分支 ”。
Try svn copy
directly from the "foreign" repository into your repo (or wc). 尝试将
svn copy
直接从“外部”存储库svn copy
到你的repo(或wc)中。
Or, use the svn_load_dirs.pl
script bundled with subversion that will import and tag the vendor branch appropriately. 或者,使用与subversion捆绑在一起的
svn_load_dirs.pl
脚本,该脚本将适当地导入和标记供应商分支。
Using the vendor branch strategy will not help you much now, but will be useful later when you want to update to a newer version of the project you are trying to import. 使用供应商分支策略现在对您没有多大帮助,但是当您想要更新到要导入的项目的较新版本时,将会很有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.