Eclipse 中的 SVN 责备 [英] SVN blame in Eclipse

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

问题描述

昨天,我发现了 Subversion (SVN) blame 功能,我想知道,Eclipse 是否提供此功能?

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

推荐答案

正如前面所指出的,您目前必须先安装插件才能启用 Subversion 支持.我推荐 Subversive,我自己,并在 StackOverflow 上搜索标签eclipse"" 和 "subversion" 一起将显示之前关于安装连接器时要注意的问题"的几个线程(Subversive 分为两部分——核心支持和提供 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).

安装后,您可以配置存储库,通过直接输入新的存储库地址并签出来创建新项目,或者通过让 Subversion 查看它来将已经附加到 SVN 的现有项目与存储库相关联.

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 + Option + 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!)

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

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