如何使用 Eclipse Juno Subversive 配置 SVN 存储库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17277351/
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
How do I configure an SVN repository using Eclipse Juno Subversive?
提问by Dave
I'm using Eclipse Juno and trying to configure version control for my projects. I installed Subversive and am trying to configure my SVN repository, but when I go to Eclipse -> Preferences -> SVN, there is no "Repository" tab, as the documentation suggests -- Eclipse Subversive. There is only "General", "SVN Connector," "Project Structure," "View Settings," and "Error Reporting."
我正在使用 Eclipse Juno 并尝试为我的项目配置版本控制。我安装了 Subversive 并尝试配置我的 SVN 存储库,但是当我转到 Eclipse -> Preferences -> SVN 时,没有“存储库”选项卡,正如文档所建议的 - Eclipse Subversive。只有“常规”、“SVN 连接器”、“项目结构”、“查看设置”和“错误报告”。
Consequently, when I right click on my project and select "Team", there is no "Commit" option -- I assume because I don't have a repository configured. How do I configure a repository in Subversive?
因此,当我右键单击我的项目并选择“团队”时,没有“提交”选项——我假设是因为我没有配置存储库。如何在 Subversive 中配置存储库?
回答by april26
Open the SVN Repositories view ie Window -> Show View... -> Other. Hunt for the SVN folder and you will see the SVN Repositories view. Once it is open, right click in the view and follow the New option. I'm sure at that point it's self-explanatory.
打开 SVN 存储库视图,即窗口 -> 显示视图... -> 其他。寻找 SVN 文件夹,您将看到 SVN Repositories 视图。打开后,在视图中右键单击并遵循“新建”选项。我确信在这一点上它是不言自明的。
I see that I have a repository configured, but I don't think I ever actually use it.
我看到我配置了一个存储库,但我认为我从未真正使用过它。
Here's how I work with SVN-hosted projects. If it's a brand new project, I simply create the project, copy it to my SVN sandbox, check it in to SVN, then copy the SVN managed project back to my workspace - or do SVN->Check Out... from Tortoise on my desktop.
这是我处理 SVN 托管项目的方式。如果它是一个全新的项目,我只需创建该项目,将其复制到我的 SVN 沙箱,将其签入到 SVN,然后将 SVN 管理的项目复制回我的工作区 - 或者从 Tortoise 上执行 SVN->Check Out...我的桌面。
Once the project is under SVN a refresh will show all the SVN information in the Project Explorer.
一旦项目在 SVN 下,刷新将在项目资源管理器中显示所有 SVN 信息。
The project has to already be under SVN before you can see the Team->Commit Team->Update stuff. I prefer to check my projects in manually from the desktop folder. But once they are checked in, I manage them 100% in eclipse.
该项目必须已经在 SVN 下才能看到 Team->Commit Team->Update 内容。我更喜欢从桌面文件夹手动检入我的项目。但是一旦它们被签入,我就会在 Eclipse 中 100% 管理它们。
回答by svnUser
Team > Share Project worked for me too ! After that right click on the project you want to commit. Go To Team > Commit. It will then show the list of files that have been changed. Un-check the ones you don't want to commit. Let the others remain checked & click on finish.
团队 > 共享项目也对我有用!之后,右键单击要提交的项目。转到团队 > 提交。然后它将显示已更改的文件列表。取消选中您不想提交的那些。让其他人保持选中状态并单击完成。