SVN授权失败,主干在头部修订中不存在,使GIT存储库在Eclipse中工作
为了简化事情,我有一个本地 SVN 存储库 D:\folder\repo_name
并且 svnserve 作为一项服务运行,根设置为上述路径。 Subclipse 和 SmartSVN 可以连接到存储库,还显示正确的头修订号,但是当我尝试探索主干(唯一的分支)时,它会给出以下错误:URL 'svn://localhost/trunk' non -存在于该版本中
。此时我可以完美地查看完整的存储库。但我不需要所有的分支,我只需要树干的内容。
当我尝试提交时,出现错误身份验证失败
。然而,我早些时候退房时的凭据很好。
当我尝试将我的东西移出那里并转移到 GIT(我认为这是最好的,因为所有内容始终保留在本地)时,git svn clone
过程完成,我看到了我的所有修订和文件传入GIT Bash,然后尝试在Eclipse中导入它。我看到它尝试将项目导入到存储库目录本身(请参阅 http://wiki.eclipse.org/Image:Egit-0.9-import-projects-general-project.png)。不用说,我收到 D:\folder\repo_name_git 与另一个项目的位置重叠的错误:'repo_name_git'
我不明白的是为什么我似乎找不到让我指定项目导入位置的单一方法。
或者,当我将 git 存储库中的项目作为现有项目添加到 Eclipse 中时,然后 - 通过 Team >共享菜单 - 尝试接受版本控制,我收到错误 无法将项目移动到目标位置 D:\folder\repo_name_git,因为此位置与包含 .project 文件的位置 D:\folder\repo_name_git 重叠
我不知所措,这些错误太笼统,无法让我了解如何解决它们。如有任何提示,我们将不胜感激。
To simplify things, I have one local SVN repository D:\folder\repo_name
and I have svnserve running as a service with root set to the mentioned path. Subclipse and SmartSVN can connect to the repository, also displays the correct head revision number, but when I try to explore the trunk (the only branch) it gives the following error: URL 'svn://localhost/trunk' non-existent in that revision
. This while I can check out the complete repository perfectly fine. But I don't need the all the branches, I need just the contents of the trunk.
When I try to commit I get the error Authentication failed
. However my credentials were fine when checking out earlier.
When I try to get my stuff out of there and move to GIT (which I suppose would be best as everything is always kept local), the git svn clone
process completes, I see all my revisions and files pass in GIT Bash, and then try to import it in Eclipse. I see that it tries to import the project into the repository directory itself (see http://wiki.eclipse.org/Image:Egit-0.9-import-projects-general-project.png). Needless to say I get the error in the shape of D:\folder\repo_name_git overlaps the location of another project: 'repo_name_git'
What I don't get is why I can't seem to find a single way to let me specify where I want the project to import into.
Alternatively, when I add the project in the git repository as an existing project into Eclipse, and then - through the Team > Share menu - try to get under version control, I get the error Can not move project to target location D:\folder\repo_name_git, as this location overlaps with location D:\folder\repo_name_git, which contains a .project file
I'm at a loss and these errors are to generic to give me an idea of how to tackle them. Any heads up would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
2分:
2 points:
您需要检查凭据
确保 svnserve 未使用 -R {readonly 选项} 启动
检查以下行是否被注释
“\REPO_NAME\conf\svnserve.conf
匿名访问 = 读取
授权访问=写入
password-db = passwd"
You need to check the credentials
make sure svnserve is not started with -R {readonly option}
Check if the following lines are commented in
"\REPO_NAME\conf\svnserve.conf
anon-access = read
auth-access = write
password-db = passwd"