如何将 TortoiseSVN 与 Eclipse IDE 集成?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18759562/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:53:21  来源:igfitidea点击:

How to Integrate TortoiseSVN with Eclipse IDE?

eclipsesvntortoisesvn

提问by Mustapha Aoussar

I have always used TortoiseSVN+ Notepad++ to develop websites and applications in a shared repository. But I want to use Eclipse IDEinstead of Notepad++.
I did a checkout to my SVN repository with TortoiseSVN and now I want to import the SVN project (a Liferay project) into Eclipse and commit files to SVN repository directly from Eclipse IDE. How can i accomplish this?

我一直使用TortoiseSVN+ Notepad++ 在共享存储库中开发网站和应用程序。但我想使用Eclipse IDE而不是 Notepad++。
我使用 TortoiseSVN 对我的 SVN 存储库进行了结帐,现在我想将 SVN 项目(一个Liferay 项目)导入 Eclipse 并直接从 Eclipse IDE 将文件提交到 SVN 存储库。我怎样才能做到这一点?

Thanks for help!

感谢帮助!

回答by Kai

You need to install an SVN Plugin. I would recommend Subversive you can find it in the Eclipse Marketplace (Help-> Eclipse Marketplace...).

您需要安装一个 SVN 插件。我会推荐 Subversive,您可以在 Eclipse Marketplace ( Help-> Eclipse Marketplace...) 中找到它。

After this you have to install an SVN Connector. I would recomment SVNKit. Then you can open the Eclipse perspective SVN Repository Exploringand configure your SVN repository.

在此之后,您必须安装一个 SVN 连接器。我会推荐 SVNKit。然后您可以打开 Eclipse 透视图SVN Repository Exploring并配置您的 SVN 存储库。

Now you can make all SVN operations directly from Eclipse and there is no need to use TortoiseSVN anymore.

现在您可以直接从 Eclipse 进行所有 SVN 操作,不再需要使用 TortoiseSVN。

回答by DanielBarbarian

The easiest is to use a SVN plugin for eclipse such as Subclipse - http://subclipse.tigris.org/. Once installed you would not have any dependency to TortoiseSVN.

最简单的方法是使用 Eclipse 的 SVN 插件,例如 Subclipse - http://subclipse.tigris.org/。一旦安装,您就不会对 TortoiseSVN 产生任何依赖。

Also note that if you wish to use both Subclipse and TortoiseSVN on the same files on your file system, your working copy format version supported by the respective clients must be the same.

另请注意,如果您希望在文件系统上的相同文件上同时使用 Subclipse 和 TortoiseSVN,则相应客户端支持的工作副本格式版本必须相同。

回答by Steve

There is a plugin which allows simple usage of Tortoise SVN (and also Beyond Compare) in Eclipse: https://github.com/ContextQuickie/ContextQuickie

有一个插件允许在 Eclipse 中简单使用 Tortoise SVN(以及 Beyond Compare):https: //github.com/ContextQuickie/ContextQuickie

回答by Abhi

The 2 Phase Installation instructions are provided in the Eclipse site which I followed to install Tortoise SVN in my Eclipse Luna. I followed the Phase I - Option 1 and Phase 2, which worked well for me.

Eclipse 站点中提供了 2 阶段安装说明,我遵循该站点在我的 Eclipse Luna 中安装 Tortoise SVN。我遵循了第一阶段 - 选项 1 和第二阶段,这对我来说效果很好。

http://www.eclipse.org/subversive/installation-instructions.php

http://www.eclipse.org/subversive/installation-instructions.php