Eclipse与CVS:相同的模块,多个分支/标签 [英] Eclipse vs. CVS: Same Modules, Multiple Branches/Tags

查看:103
本文介绍了Eclipse与CVS:相同的模块,多个分支/标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我研究两种产品,每种产品都位于其自己的CVS模块中;称它们为B(基础)和D(从属)。 D取决于B; B可以独立存在。通常,我想在IDE环境中将它们放在一起,以便例如在编辑器和调试器中遵循从D到B的API调用。这些产品的发布时间表不同。 D的给定分支/标记取决于B的特定分支/标记。在任何给定的时间,我可能正在研究几种不同的B / D分支/标记组合。

I work on two products, each residing in its own CVS module; call them B (Base) and D (Dependent). D is dependent on B; B can exist on its own. Typically I want to have them together in my IDE environment so that I can e.g. follow API calls from D to B in the editor and debugger. These products are on distinct release schedules; a given branch/tag of D is dependent on a specific branch/tag of B. At any given time, I may be working on several different B/D branch/tag combinations.

我是Eclipse新手,但是我相信我们在这里谈论的是多个工作区,每个B / D组合一个,每个都有B和D项目。我需要能够相对创建这些工作区快速,而不必每次都完全启动,并且环境不会随工作空间而变化,当然,分支/标记是不同的。

I'm an Eclipse noob, but I believe what we are talking about here is multiple workspaces, one for each B/D combination, and each with projects for B and D. I need to be able to create these workspaces relatively quickly, without starting completely over each time, and in such a way that the environment does not vary across the workspaces, except of course for the fact that the branch/tags are different.

因此:在Eclipse中要在这里完成我的目标,我必须做什么?预先感谢...

So: What do I have to do in Eclipse to accomplish my goals here? Thanks in advance...

马克

推荐答案

您可以使用单独的工作区,但是为每个新的B / D组合创建一个新的工作区似乎有点不切实际。

You can use separate workspaces, but creating a new workspace for each new B/D combination seems a bit impractical.

我处于类似的情况,尽管我的组合可能较少。我使用一个工作区,在需要时可以在其中签出每个分支。只要每个项目名称都是唯一的,就可以安全地在Eclipse中签出多个分支。在签出项目名称后,我在项目名称后添加了一个分支标记,以便可以轻松识别正确的版本。
当我处理一个项目组合时,我关闭了之前签出的所有其他项目,所以我不会错误地编辑错误的版本。每次必须手动调整的唯一事情是,您将在项目的类路径和运行配置中处理哪个从属项目。

I am in a similar situation, although I probably have less combinations. I use a single workspace where I check out each branch when I need it. You can safely check out multiple branches in Eclipse, as long as each project name is unique. I add a branch tag after the project name when I check it out so I can easily identify the correct version. When I'm working on one combination of projects, I close the all other projects that I checked out earlier so I don't edit the wrong version by mistake. The only thing that you have to adjust manually each time is which dependent project you will be working on in your project's classpath and run configuration.

或者,如果您仍然想使用多个工作区,则可以尝试创建一个新的工作区文件夹并将现有工作区的.metadata文件夹复制到该文件夹​​中。这将复制您的工作区设置。唯一的缺点是您必须在启动后删除所有项目引用,因为它们在新的工作空间中将不存在。

Alternatively, if you still would like to use multiple workspaces you can try creating a new workspace folder and copying the .metadata folder of an existing workspace to it. This will copy your workspace settings. The only drawback is that you have to remove all project references after startup since they won't exist in your new workspace.

这篇关于Eclipse与CVS:相同的模块,多个分支/标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆