English 中文(简体)
如何在工作空间同时使用 SVN 和 Eclipse?
原标题:How to use SVN and Eclipse in workspace together?

我为Android写了一个简单的应用程序 但现在我想把它放到版本控制中

于是我安装了小圆圈,但有两个问题:

  1. 我的项目在 [workspace]/MyApp 中,但我想将其移动到/[workspace]/MyApp/work/trunk (这里的work 是一个SVN工作目录)

    我总是得到一个错误, 即我不必重叠工作空间。 我创建了另一个工作空间, 并将其用于这个项目, 但是这真的是最好的解决方案吗?

  2. 分支呢? 我来自代码 : 锁, 您可以简单地移动您的工程文件 。 在剪贴板中, 我想它比较复杂 。 是否有一个重构/ 复制解决方案?

最佳回答

(1) 正常程序是您右键单击日光片工程,左键单击团队 - & gt; 共享工程。 您可以告诉 Eclipse 您想要在 Subversion 中在哪里存储工程。 日光片工作空间和 Subversion 树干是不同的目录。 有时在不同的计算机上 。

Eclipse 工作空间被称为 Subversion 工作副本。 您使用 Team - & gt; committee 将 Subversion 工作副本更改为 Subversion 工作副本 。 您使用 Team - & gt; 更新将 Subversion 工作副本更改为 Subversion 工作副本 。

(2) 对于Subversion的分支,您使用 Subclipse 将模块从树干复制到分支。然后您查看 Eclipse 的分支 。

要移动 Eclipse 中的模块,您可以右键单击模块,左键单击 Refactor - & gt; 移动选项。

要复制 Eclipse 中的模块, 您只需复制和粘贴即可。 必须使用 Team - & gt; 添加到版本控制中, 将已复制的模块和新模块识别为 Subversion 。

问题回答

暂无回答




相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签