如果 CVS 更新挂起,有没有办法在 Eclipse 中标记项目?
当我启动 Eclipse 时,我通常做的第一件事就是更新我的源代码以引入其他开发人员(或我的家庭工作)的更改。有时我只是忘记了。但由于我们通常在 HEAD 的一个小团队中工作,所以我们通常都希望拥有最新的资源。
最好让 eclipse 自动(比如每小时左右),将其工作区与 CVS 服务器同步,并用待更新的标签标记项目(当然它不应该自动更新源代码!)
我已经在网上搜索过为此,我发现了一些关于 CVS 监视/编辑功能的评论。但我不喜欢每次处理文件时都打电话给编辑,也不希望收到邮件通知。我所需要的只是我的项目中的一个小图标,上面写着“您可以在工作之前运行 cvs update”。
Eclipse 中是否有类似的功能?
问候 詹宁
when i startup eclipse, first thing i usually do is updating my source code to pull in changes from other developers (or from my home work). Sometimes i just forget it. But as we are usually working in a small team on HEAD, we all usually want to have the latest sources.
It would be nice to let eclipse automatically (like every hour or so), synchronize its workspace with CVS server and mark the project with a label for pending updates (of course it shoul dnot update the source code automatically!)
I have searched the web for it and i found some comments on CVS watch/edit feature. But i don't like to call edit every time i work on a file and i don't want to be informed by mail. All i need is a little icon at my project which says "You might run cvs update before you work on".
Is something like this available as a feature in eclipse?
regards
Janning
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,您所要求的正是 CVS 监视/编辑功能的用途。我同意电子邮件问题是 PiTA 的一个主要问题,但是嘿 - 请记住 - CVS 已经很老了;现在许多 CVS 概念显得有些奇怪,而在 CVS 最初编写时它们却显得比较合理。
我想不出 Eclipse 提供的任何内部方法来完成您的要求。您基本上需要定期更新“同步”视图 - 并且 CVS 插件的编写方式 - 该视图仅在启动时以及每当您选择“与存储库同步”时才会填充。
艾萨克
Well, what you're asking for is precisely what the CVS watch/edit feature is for. I agree that the emailing issue is a major PiTA but hey - remember - CVS is quite old; many CVS concepts appear a bit odd nowadays, whereas they appeared more reasonable when CVS was first written.
I cannot think of any internal, Eclipse-provided way to do what you're asking. You basically need the "Synchronize" view to be updated periodically - and, the way that the CVS plugins are written - that view is only populated upon startup and whenever you select "synchronize with repository".
Isaac