创建一个Subversion分支

创建一个Subversion分支

本文介绍了创建一个Subversion分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 GUI创建分支;但是,我返回了一个错误:

I have a Subversion repository (running SVN 1.6.6) on an Ubuntu Linux server, and I'm trying to create a branch using the TortoiseSVN GUI; However, I get an error back:

错误
'/ svn / repository /!svn / bc / 234 / branches'
路径未找到

Error '/svn/repository/!svn/bc/234/branches' path not found

我登录了进入我的Linux机器,查看 branch文件夹是否不可用。但是,我可以看到/ var / svn / repository / branches存在。

I logged into my Linux box to see if the "branches" folder was NOT available. However, I could see that /var/svn/repository/branches existed.

那么,问题出在哪里,怎么解决?

So, what's the problem and how do I fix it?

我尝试了以下命令(按照)以及从命令行中获取类似的错误:

I tried the following command (as per http://svnbook.red-bean.com/en/1.1/ch04s02.html#svn-ch-4-sect-2.1) as well as from the command line and got a similar error:

c:\workingcopy> svn copy http://reposerver/svn/repository/ http://reposerver/svn/repository/branches/BFI_Oct13/ -m "Creating a branch"



我该怎么办?

此外, svn信息工作副本的主目录提供以下信息。

Also, svn info on the main directory of the working copy gives the following information.

Path: .
URL: http://reposerver/svn/myrepository
Repository Root: http://reposerver/svn/myrepository
Repository UUID: 7a31d3c0-b288-4695-aecd-3f9dda2861ab
Revision: 235
Node Kind: directory
Schedule: normal
Last Changed Author: anjan
Last Changed Rev: 235
Last Changed Date: 2010-10-13 20:39:31 +0530 (Wed, 13 Oct 2010)


推荐答案

当您说:

您的意思是文件系统中存在实际目录吗? (这绝对对您没有好处),还是它存在于存储库中?

Do you mean that the actual directory exists in the filesystem (which will do you absolutely no good), or that it exists in the repository?

可能的解决方法:

$ svn mkdir http://reposerver/svn/repository/branches
$ svn copy http://reposerver/svn/repository/ http://reposerver/svn/repository/branches/BFI_`date +%b%d`/ -m "Creating a branch"

这篇关于创建一个Subversion分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 20:51