SVN授权失败,主干在头部修订中不存在,使GIT存储库在Eclipse中工作

发布于 2025-01-02 22:15:36 字数 991 浏览 3 评论 0原文

为了简化事情,我有一个本地 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若沐 2025-01-09 22:15:36

2分:

  1. 我在“正确”的凭据上收到“身份验证失败” - 除了我使用的插件强制我的用户名的第一个字母为大写 - 检查您的用户名的大小写(大写或小写)。
  2. 我刚刚在转移到 Subversion 1.7 存储库时遇到了问题,我的 Subversive 插件不支持该存储库,并且我收到了一些奇怪的错误。

2 points:

  1. I was getting "Authentication failed" on "correct" credentials - except the plugin I used was forcing the first letter of my username to uppercase - check the case of your username (upper or lower).
  2. I've just had a problem moving onto a Subversion 1.7 repository, which is not supported by my Subversive plugin, and I was getting some strange errors.
酷遇一生 2025-01-09 22:15:36

您需要检查凭据

  1. 确保 svnserve 未使用 -R {readonly 选项} 启动

  2. 检查以下行是否被注释
    “\REPO_NAME\conf\svnserve.conf
    匿名访问 = 读取
    授权访问=写入
    password-db = passwd"

You need to check the credentials

  1. make sure svnserve is not started with -R {readonly option}

  2. Check if the following lines are commented in
    "\REPO_NAME\conf\svnserve.conf
    anon-access = read
    auth-access = write
    password-db = passwd"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文