简体   繁体   English

如何从SVN存储库中删除.svn文件夹

[英]How to delete .svn folder from a SVN repository

Issue: 问题:

While loading a dump to a repository, getting below mentioned exception. 将转储加载到存储库时,获得下面提到的异常。

<<< Started new transaction, based on original revision 1
svnadmin: E160020: File already exists: filesystem '/ngs/app/istsvnp/SVNROOT/ACENTERPRISE/db', transaction '805-mv', path 'branches'

Using following command to load to the repository 使用以下命令加载到存储库

svnadmin load --bypass-prop-validation ~/SVNROOT/ACENTERPRISE < $NGS1/acenterprise.dump

But when I load the dump ( acenterprise.dump ) to another test repository, I could able to load properly. 但是当我将转储( acenterprise.dump )加载到另一个测试存储库时,我能够正确加载。

Issue looks like, when I checked out the repository ACENTERPRISE in my desktop, could see that there is a .svn folder present. 问题看起来,当我在桌面上检出存储库ACENTERPRISE时,可以看到存在.svn文件夹。

Is .svn folder is causing the issue (not loading the dump) How can I delete the .svn folder from the working copy of the repository and commit the changes to server. .svn文件夹导致问题(不加载转储)如何从存储库的工作副本中删除.svn文件夹并将更改提交到服务器。

Please help. 请帮忙。

The .svn directory is purely a client-side construct. .svn目录纯粹是一个客户端构造。 It's created and used by the client to connect a working copy (what you checked out) back to the server. 客户端创建并使用它将工作副本(您签出的内容)连接回服务器。 It does not exist on the server and should never find its way into the repository. 它在服务器上不存在,永远不会进入存储库。

If you are attempting to load a dumpfile into a pre-existing repository that already has activity in it, that will require some additional effort and it will make working with older revisions...weird. 如果您尝试将转储文件加载到已经存在活动的预先存在的存储库中,那将需要一些额外的工作,并且它将使得使用较旧的版本...很奇怪。 If that's what you really need to do, see the following links: 如果这是您真正需要做的,请参阅以下链接:

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

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