关于源代码控制礼仪的问题
在Eclipse中使用svn时,我可以正常添加文件还是需要告诉SVN添加?如果是这样,怎么办?
另外,在处理项目时是否必须始终进行更新以从服务器获取最新代码?这样做的问题是,有时另一个团队成员可能会处理我正在处理的代码,并在每个里程碑处检查而不通知我(当任务不是基于配对时)。
最后,svn有沙箱功能吗?就像我的代码的本地存储库一样,它仍然是 WIP。如果是的话,在哪里?
谢谢
When using svn in Eclipse, can I add files normally or do I need to tell SVN about an add? If so, how?
Also, is it a must to always do an update to get the latest code from the server when working on a project? The problem with this is that sometimes another team member may work on the code I am working on and check in at every milestone without informing me (when the task is not pair-based, either).
Finally, is there a sandbox feature in svn? Like a local repository of my code which is still WIP. If so, where?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您仍然可以使用其他 SVN 客户端,例如命令行或其他客户端。只需确保在尝试提交之前在 Eclipse 中刷新项目即可。
这不是必须,但建议您在提交之前这样做。首先,因为如果您的更改与其他人提交的更改不同步,我会破坏项目。其次,如果您的更改修改了自上次更新以来已更改并提交的文件,
svn
将使您在允许您提交之前对该文件进行更新。不,没有。有你的“工作副本”和“存储库”。这是
svn分支的使用之一代码>.每个团队成员都可以有自己的分支,或者每个功能都可以有自己的分支以进行隔离开发。然后,开发人员可以按照他们认为合适的方式提交他们正在处理的分支,完成后有人可以将该分支合并回主干。
You can still use another SVN client like the commandline or what have you. Just make sure you refresh your project in Eclipse before trying to commit.
Its not a must but It's adviseable to do so before you commit. Firstly because your changes my break the project if they arent in sync with the changes others have committed. Secondly, if your changes modify a file that has been changed and commited since the last time you did an update
svn
is going to make you do an update on that file before it allows you to commit anyway.No there isnt. There is your "Working Copy" and there is the "Repository". This is one of the use of branches in
svn
. Each team member could have their own branch, or each feature could have its own branch for isolated development. Developers can then commit to the branch they are working on as they see fit, and when they are done someone can merge that branch back to the trunk.在团队环境中使用 SVN 时我通常遵循的步骤:
据我所知,尽管 DVCS 有区分“提交”和“推送”的概念,这可能正是您正在寻找的。
The steps which I usually follow when using SVN in a team setting:
Not that I know of though DVCS's have the concept of differentiating between "commit" and "push" which might be what you are looking for.