如何从 TortiseSVN 迁移到 Eclipse 插件来管理已建立的 SVN 项目

发布于 2024-12-08 17:47:30 字数 699 浏览 1 评论 0原文

几个月来我一直在使用同一个 Subversion 工作副本作为本地服务器 htdocs 文件夹的子目录。我当时在 PHPDesigner7 中工作并使用 TortiseSVN 管理我的存储库。由于我是唯一一个在工作的人,所以我只是承诺并继续工作,而不需要多次签出或更新。

我最近从 PHPDesigner7 迁移到 Eclipse 作为我的日常 IDE。我创建了一个项目并使用我的工作副本根目录作为位置。我已经在 eclipse 中编写所有代码大约六周了,看起来在 IDE 中进行 SVN 操作要容易得多。我想开始将 SVN 集成到我的 Eclipse 工作流程中,但我想将我的工作副本保留在原来的位置。有很多文件(例如 Adob​​e Bridge 索引文件和 Docblox 配置文件)我没有将其置于源代码控制之下,但对我的工具仍然很重要。如果我创建一个新的结账,这些文件将不存在。我还喜欢能够直接从我的工作副本进行本地服务器测试。

如何在 Eclipse IDE 中使用现有的工作副本?我已经安装了 Subclipse,但在决定尝试将 SVN 管理切换到 IDE 之前,我设置了 eclipse 项目。是不是就像让我的工作区与工作副本一样简单?我刚刚使用 Eclipse 默认工作区。如果我使用新的 Eclipse 项目会更好吗?从 Tortise 迁移到 Subclipse 时需要注意什么吗?我特别想知道 Subclipse 是否会执行许多小型提交操作,或者我是否可以继续进行更少的大量评论的较大提交?有人喜欢颠覆性插件吗?如果是这样为什么?

I have been working with the same Subversion working copy as a sub-directory of my local server's htdocs folder for months now. I was working in PHPDesigner7 and managing my repository with TortiseSVN. As I am the only one working, I just commit and keep working without any real need for multiple checkouts or updates.

I recently moved from PHPDesigner7 to Eclipse for my every day IDE. I have created a project and used my working copy root as the location. I have been writing all my code in eclipse for about six weeks now, and it seems like it would be much easier to do SVN operations within the IDE. I want to start integrating SVN into my Eclipse workflow, but I want to keep my working copy in the same place it has been. There are a lot of files like Adobe Bridge index files and Docblox configuration files that I do not keep under source control, but are still important to my tools. If I create a new checkout these files will not be present. I also like being able to do local server testing directly from my working copy.

How can I use my existing working copy from within the Eclipse IDE? I have installed Subclipse, but I set my eclipse project up before I decided to try switching SVN management to the IDE. Is it as simple as making my workspace the same as the working copy? I have just been using the Eclipse default workspace. Would I be better off with a fresh Eclipse project? Are there any caveats I need to be aware of when moving from Tortise to Subclipse? I especially wonder if Subclipse does many small commit operations, or if I can continue making fewer heavily commented larger commits? Does anyone prefer the subversive plugin? If so why?

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

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

发布评论

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

评论(1

伴我老 2024-12-15 17:47:30

Eclipse 项目的根目录应该是工作副本的根目录。然后,您只需右键单击该项目并选择团队 - 共享项目,然后按照教程进行操作即可。有时 Eclipse 会询问您是否要保留现有的 .svn 文件。只需选择保留它们即可。

Eclipse 中的工作流程与任何其他 SVN 客户端完全相同。您可以在需要时更新并提交。如果您愿意,您还可以继续使用 TortoiseSVN 来执行 SVN 操作。每次操作后您只需刷新 Eclipse 项目即可。

The root directory of your eclipse project should be the root of your working copy. Then you just have to right-click on the project and choose Team - Share Project, and follow the tutorial. At some point Eclipse will ask you if you want to keep the existing .svn files or not. Just choose to keep them.

The workflow in Eclipse is exactly the same as with any other SVN client. You update and commit when you want to. And you may also continue using TortoiseSVN to perform your SVN operations if you prefer. You'll just have to refresh your eclipse project after each operation.

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