SVN怪在Eclipse中 [英] SVN blame in Eclipse

查看:121
本文介绍了SVN怪在Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我发现了Subversion(SVN)责怪功能,我想知道,是否可以从Eclipse获取此功能?

Yesterday, I discovered the Subversion (SVN) blame feature, and I was wondering, is this feature available from Eclipse?

推荐答案

正如所指出的,您目前必须先安装一个插件才能启用Subversion支持。我建议您 Subversive ,我自己,并在此搜索Stack  Overflow的标签eclipse 和颠覆一起将显示几个以前的线程,关于安装连接器时要注意的陷阱(颠覆分为两部分 - 提供SVN胶水的核心支持和连接器)。

As was pointed out, you would currently have to first install a plug-in to enable Subversion support. I recommend Subversive, myself, and a search here on Stack Overflow for the tags "eclipse" and "subversion" together will show several previous threads regarding "gotchas" to watch out for when installing the connectors (Subversive is separated into two parts-- the core support and "connectors" that provide the SVN glue).

安装完成后,您可以配置存储库,通过直接输入新的存储库地址并检查出来创建新项目,或将已经附加到SVN的现有项目与存储库通过Subversion查看。

Once you have that installed, you can configure repositories, create new projects by directly entering a new repository address and checking it out, or associate an existing project that was already attached to SVN with the repository by have Subversion look it over.

完成 之后,这是您访问svn blame命令,也称为注释或赞美:

Once you've done that, this is how you access the "svn blame" command, also known as "annotate" or "praise":

对于资源,右键单击文件资源管理器窗格中的资源名称以弹出 - 上下文菜单(您也可以通过钻机获取此菜单点击编辑器本身的任何地方)。在团队标题下(您也可以访问所有SVN命令的位置),因为Eclipse在团队共享标题下概括了源代码管理),请选择显示注释。在我的 Mac PowerBook 上,键盘快捷键为 Ctrl + < kbd>选项 + A ,我不在我的Linux或Windows XP平台上,看看我们的任何一个快捷方式(Mac  OS  X端口倾向于调整键盘遵循Mac应用程序应该做的更好的视图的快捷方式。

For a resource, right click on the resource name in the file-explorer pane to pop-up the context menu (you can also get this menu by right-clicking anywhere in the editor itself). Under the "Team" heading (which is also where you access all the SVN commands, as Eclipse generalizes source control under the heading of "Team Sharing"), select "Show Annotation". On my Mac PowerBook, the keyboard shortcut for this is Ctrl + Option + A, I'm not near my Linux or Windows XP platforms to see what the shortcut us on either of them (Mac OS X ports tend to tweak keyboard shortcuts to adhere to the "greater good" view of what a Mac application should do).

经过一段时间与Subversion版本库的交流,左边的编辑器窗口将显示一系列彩色条。如果您的编辑器启用了行号,则这些数字将重叠。否则,他们只是酒吧。每个颜色的交替代表一个责任从一个用户变化到另一个用户的中断。如果将指针悬停在一个栏上,将出现一个工具提示,标识负责的用户,这些行来自的日期和签入注释的修订/提交。栏的颜色将由提交者到提交者和修订版本的不同而不同。它们将具有相同基色的不同色调,但是Eclipse将尽可能使它们在视觉上截然不同(尽可能多)。当您将鼠标悬停在一个代码段上时,它会略显突出显示,所有与该修订版本相关的其他栏杆也将突出显示。

After a bit of time conversing with the Subversion repository, the left-gutter of the editor window will show a series of colored bars. If you have line-numbers enabled for your editor, these will overlay the numbers. Otherwise, they'll just be bars. Each alternation of color represents a break where responsibility changes from one user to another. If you hover the pointer over a bar, a tooltip will appear identifying the responsible user, the revision/commit that the lines are from, date and the check-in comment. The color of the bars will vary from committer to committer, and revision to revision. They'll be varying shades of the same base color, but Eclipse will try to make them visually distinct (as much as possible). When you're hovering over a snippet, it highlights slightly, and all other bars that are tied to the same revision will also highlight.

(现在,不要问到目前为止,我唯一的解决方案是关闭缓冲区并重新打开它!)

(Now, don't ask me how to turn it off. Thus far, my only solution has been to close the buffer and re-open it!)

这篇关于SVN怪在Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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