Subclipse 无法将我的项目识别为 SVN 项目

发布于 2024-08-28 09:05:55 字数 592 浏览 4 评论 0原文

我从 SVN 将“myproject”文件夹检出到我的硬盘上。
它恰好是一个 Eclipse 项目,所以我将它导入到 Eclipse 中,我可以对其进行操作。

我已经安装了 Subclipse,并且在同一 Eclipse 工作区中的其他项目上按预期工作。
但由于某种原因,“myproject”没有常见的 Subclipse 控件,例如 Team>Commit 或装饰。

我错过了任何明显的步骤吗?

svn --版本:1.6.5 (r38866)
子剪辑:1.6.6 Eclipse: jee-galileo-SR1-linux-gtk 20090920-1017

这是当我单击 Team>Share>SVN 时发生的情况:

Subclipse Team Share http://img718.imageshack.us/img718/7308/screenshotsubclipse.png

请记下根 .svn 文件夹。
在命令行上,SVN 在此文件夹中工作。

From SVN I checked out a "myproject" folder to my hard drive.
It happens to be an Eclipse project, so I imported it into Eclipse and I can work on it.

I have Subclipse installed and working as expected on other projects in the same Eclipse workspace.
But for some reason, "myproject" does not have the usual Subclipse controls like Team>Commit or the decorations.

Did I miss any obvious steps?

svn --version: 1.6.5 (r38866)
Subclipse: 1.6.6
Eclipse: jee-galileo-SR1-linux-gtk 20090920-1017

Here is what happens when I click Team>Share>SVN:

Subclipse Team Share http://img718.imageshack.us/img718/7308/screenshotsubclipse.png

Please note the root .svn folder.
On the command-line, SVN works in this folder.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

抠脚大汉 2024-09-04 09:05:55

尝试右键单击“myproject”,然后单击“团队/共享项目”。它应该询问您什么类型的存储库,当您移动到下一个屏幕时,它应该指示它看到现有的 SVN/ 目录,此时它应该使用该元数据来建立链接。它还可能要求您设置 SVN 存储库(在 SVN 存储库透视图中)。

Try right-clicking "myproject" and click Team / Share Project. It should ask you what type of repository, and when you move to the next screen it should indicate that it sees existing SVN/ directories at which point it should use that metadata to establish the link. It may also require that you have the SVN repository set up (in the SVN Repositories perspective).

蹲墙角沉默 2024-09-04 09:05:55

您还可以删除项目(不要删除内容)并将其再次导入为现有项目。

You can also remove the project (don't delete contents) and import it as existing project again.

少女情怀诗 2024-09-04 09:05:55

好的,我在处理相同的错误后到达这里
现在我找到了我的错误(和解决方案),也许这可以帮助这里的其他人

我的问题是我的存储库与我的 tortoise-svn 版本不同

据发现:
我的仓库。当我使用1.8版本时,它是1.6版本!

只是将其降级到 1.6 就可以了:)

OK I got to here after handling the same error
Now I've found my error(and solution) , maybe it is something that may help others here

My problem was that my repository was in different version than my tortoise-svn !!

As found out :
my repo. was of version 1.6 while I was using version 1.8 !

just downgraded it to 1.6 and it works :)

少女七分熟 2024-09-04 09:05:55

如果您刚刚安装了 Subclipse 插件,已经重新启动了 Eclipse 但无法识别 SVN:

  • 关闭项目并再次打开它
  • F5 刷新
  • 它应该可以识别它。

If you have just installed Subclipse plugin, already restarted the Eclipse but no SVN recognized:

  • close the project and open it again
  • F5 to refresh
  • It should recognize it.
要走就滚别墨迹 2024-09-04 09:05:55

我发布此内容是为了防止有人遇到类似的情况。我正在使用 subclipse 插件运行 eclipse luna 。

我以前曾这样做过,没有发生任何意外,但 svn 是我使用过的更“敏感”的源代码控制存储库之一。

我想将 png 徽标文件移动到我的应用程序中。因此,我将现有徽标重命名为 logo_bak,然后导入新徽标,然后将其命名为与我刚刚重命名为 logo_bak 的现有徽标相同的名称。然后我签入了一些文件并继续执行其他任务。

然而,在下一个工作日,当我启动 eclipse luna 时,我的整个项目是“脏的”,如项目上的 svn 标签装饰所示。

(需要提交标记为“脏”的文件,
“unversioned”文件尚未添加到您的 SVN 存储库,并且
等等。)

但我就是无法让它与 svn 同步。我还发现我的文件从未被签入。如果我右键单击我的项目,然后选择团队 - 共享项目,该选项不会显示,并且团队 - 与存储库同步被禁用。

我尝试创建一个新项目,从 eclipse 中删除元数据,打开然后关闭项目,以及其他一些事情,但有效的是断开项目与 svn 的连接,然后再次连接回它。之后,我可以右键单击该项目,然后选择团队 - 共享项目。然后,当我同步时,我有大约十几个文件需要覆盖和更新,即使当我检查差异时它们与存储库中的内容相同。但在那之后一切又开始正常工作。

I'm posting this in case someone runs into a similar situation. I'm running eclipse luna with the subclipse plugin.

I've done this before without mishap, but svn is one of the more "touchy" source control repositories I've worked with.

I wanted to move a png logo file into my app. So I renamed the existing one to a logo_bak and then imported the new one and then named it the same name as the existing logo that I just renamed logo_bak. I then checked in some files and went on my way to other tasks.

However, the next work day when I started up eclipse luna my entire project was "dirty" as indicated by the svn label decoration for dirty on the project.

(A file that is marked as "dirty" needs to be committed, an
"unversioned" file hasn't been added to your SVN repository yet, and
so on.)

and I just couldn't get it to synchronize with svn. I also found that my files never did get checked in. If I did a right click on my project, then Team - Share Project, that option wasn't displaying and Team - Synchronize with Repository was disabled.

I tried creating a new project, deleting metadata from eclipse, opening then closing the project, and several other things, but what worked was disconnecting the project from svn, then connecting back to it again. After that I was able to right click on the project, then select Team - Share Project. Then when I synchronized I had about a dozen or so files to Override and update, even though when I checked on differences they were the same as what was in the repo. After that though everything started working again normally.

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