Subclipse 中的箭头图标是什么意思?
以下屏幕截图中的图标是什么意思?这些图标来自 Subclipse,这是一个 Eclipse 的 SVN 插件。
我不是在问基本文件图标,我知道那些(HTML 文件和 Java 源文件)。我问的是向右指向的深灰色箭头,它们被标记为“传出”。这意味着什么?从 IDE 传出到存储库,还是从存储库传出到 IDE?为什么箭头内有减号?有时,我会看到加号;其他时候,只是空箭头。有什么区别?
还有向左的蓝色箭头和双头红色箭头;这些是什么意思?当它们包含其他符号(例如 -
和 +
)时该怎么办?
注意:这个问题已被大幅编辑。通常我不会改变那么多,但它几乎没有任何活动,而且是一个骗局。最初的问题要求一个“图标词汇表”来解释所有或大部分 Subclipse 的图标,类似于 这个适用于 Eclipse。我仍然很想知道其中之一,但似乎没有。
What do the icons in the following screen capture mean? The icons are from Subclipse, an SVN plugin for Eclipse.
I'm not asking about the base file icons, I know those (HTML file and Java source file). I'm asking about the right-pointing dark gray arrows, which are labeled "outgoing." What does that imply? Outgoing from the IDE to the repo, or outgoing from the repo to the IDE? Why are there minus signs inside the arrows? Sometimes, I see plus signs instead; other times, just empty arrows. What's the difference?
There are also left-pointing blue arrows and double-headed red arrows; what do those mean? What about cases when they contain other symbols, like -
and +
?
Note: This question has been edited pretty drastically. Normally I wouldn't change so much, but it had nearly no activity and was a dupe. The original question asked for an "icon glossary" that would explain all or most of Subclipse's icons, similar to this one for Eclipse. I'd still love to know about one of those, but there just doesn't seem to be one out there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Subversion 存储库时,远程更改(存储库上的更改)是传入更改(远程 → 本地),而本地更改是传出更改(本地 → 远程)。
在比较本地副本和远程副本的视图中,传入更改用蓝色向左箭头表示,而传出更改用灰色向右箭头表示。这些箭头可以被修饰以指示更具体的操作。
另一方面,Package Explorer 视图使用一组不同的代表其本地状态的图标来指示文件的状态。这些图标是最常见的,所以让我们从它们开始:
- A文件被版本控制忽略。您可以通过转至窗口 → 首选项 → 团队 → 忽略的资源来控制将忽略哪些资源。
- 不受版本控制的文件。这些通常是您尚未提交到存储库的新文件。
- 需要添加到远程存储库的版本化文件。这些通常是您已重命名或移动到其他目录的文件。
- 已删除的文件夹。这些是您在本地删除但尚未将更改提交到存储库的文件夹。请注意,在本地删除文件时,文件通常会从视图中删除,因此通常看不到带有此图标的文件。
- 没有本地更改的文件。
- 包含本地未提交更改的文件。
- A 锁定文件。
- 需要锁定才能编辑的文件。这些通常是不容易合并的文件(即二进制文件),但可能有许多编辑器。当文件的
svn:needs-lock
属性被设置时,它需要一个锁,Subversion 将尝试使这些文件在文件系统中只读,以强制执行正确的锁协商。- 冲突文件。这些通常是存在提交/更新冲突的文件,您将其标记为稍后解决。
- 存在树冲突的文件。这些通常是具有本地更改的文件,但自上次本地副本更新以来已在存储库中移动、删除或重命名。
- 项目外部的文件。链接的外部文件无法提交到存储库。
- 已已切换。这些文件属于与其本地父目录不同的工作副本。
在同步视图中(例如,通过与存储库同步或提交),如前所述,有一些图标指示发生更改的方向以及有关的附加信息那个改变。这些描述如下:
传出
- 内容已被修改并将提交到存储库的文件。< br>
- 将新添加到存储库中的文件。在移动或重命名文件的情况下,这可能与文件删除同时发生。
- 将从存储库中删除的文件。在移动或重命名文件的情况下,这可能与文件添加同时发生。
- 带有 属性更改,在“提交”对话框中。在“同步”选项卡上,属性更改当前反映为正常文件修改 () 。
传入
- 一个文件,其内容更改已提交到存储库,并将应用于本地副本。
- 将从存储库添加到本地副本的新文件。与添加传出文件一样,这可能是移动或重命名的结果。
- 将从本地副本中删除的文件,因为它已从存储库。与传出文件删除一样,这可能是移动或重命名的结果。
冲突
- 本地副本和存储库中均已单独更改的文件,导致解决冲突的需要。解决此问题需要打开冲突视图或在本地或远程强制覆盖更改。
- 具有 树冲突。当一端(本地或远程)的文件发生新更改,而另一端的文件被移动、删除或重命名时,可能会发生这种情况。
最后,与存储库同步选项将打开“同步”选项卡 (),带有以下按钮:
- 将本地副本与当前选定的副本同步单击时存储库。从下拉列表中进行选择可以在不同的远程代码库之间进行切换。
- 仅显示传入更改(远程 → 本地)。
- 仅显示传出更改(本地 → 远程)。
- 显示传入和传出更改(远程 ↔ 本地)。
- 显示冲突的更改。
- 在提示后使用传入的更改更新所有本地资源。
- 打开提交对话框以提交所有传出更改。
- 按修订版分解变更列表。
还有一些其他未涵盖的视图具有附加图标,但这应该是一个好的开始。如果有任何重要的遗漏,或者这些描述似乎与您的实际体验有所不同,请告诉我。
When working with the Subversion repository, remote changes (those on the repository) are incoming changes (remote → local), while local changes are outgoing changes (local → remote).
In views that compare the local and remote copies, incoming changes are denoted with a blue, left-facing arrow, while outgoing changes are denoted with a gray, right-facing arrow. These arrows may be decorated to indicate more specific operations.
The Package Explorer view, on the other hand, indicates a file's status with a different set of icons representing its local state. These icons are the ones most commonly seen, so let's start with them:
- A file ignored by version control. You can control what resources will be ignored by going to Window → Preferences → Team → Ignored Resources.
- A file not under version control. These are typically new files that you have not committed to the repository yet.
- A versioned file that needs to be added to the remote repository. These are typically files you have either renamed, or moved to a different directory.
- A deleted folder. These are folders that you have deleted locally without yet committing the changes to the repository. Note that files are usually removed from the view when they're deleted locally, so they are normally not seen with this icon.
- A file with no local changes.
- A file with local, uncommitted changes.
- A locked file.
- A file that needs a lock to be edited. These are typically files that cannot easily be merged (i.e. binary files), but may have many editors. A file needs a lock when its
svn:needs-lock
property is set, and Subversion will attempt to make these files read-only in the file system to enforce proper lock negotation.- A conflicted file. These are typically files that had a commit/update conflict that you marked to resolve later.
- A file that has a tree conflict. These are typically files that have local changes, but have since been moved, removed, or renamed in the repository since the last local copy update.
- A file that is external to the project. Linked external files cannot be committed to the repository.
- A file that has been switched. These are files which belongs to a different working copy than their local parent directory.
In a synchronization view (e.g. via Synchronize with Repository or Commit), as previously described, there are icons which indicate which direction a change is occurring in as well as additional information about that change. These are described below:
Outgoing
- A file whose contents have been modified and will be committed to the repository.
- A file that will be newly added to the repository. This may coincide with a file removal in cases where a file is moved or renamed..
- A file that will be removed from the repository. This may coincide with a file addition in cases where a file is moved or renamed.
- A file with property changes, in the Commit dialog. On the Synchronize tab, property changes are currently reflected as a normal file modification ().
Incoming
- A file that has content changes committed to the repository that will be applied to the local copy.
- A new file that will be added to the local copy from the repository. Like the outgoing file addition, this may be the result of a move or rename.
- A file that will be removed from the local copy because it has been removed from the repository. Like the outgoing file removal, this may be the result of a move or rename.
Conflict
- A file that has been changed in both the local copy and repository independently, causing a need for conflict resolution. Fixing this condition involves opening up the conflict view or forcibly overwriting changes locally or remotely.
- A file that has a tree conflict. This can occur when there are new changes to a file on one end (either local or remote), and the file is moved, removed, or renamed on the other.
Finally, the Synchronize with Repository option opens the Synchronize tab () with the following buttons:
- Synchronizes the local copy with the currently selected repository when clicked. Selecting from the drop-down allows switching between different remote code bases.
- Shows only incoming changes (remote → local).
- Shows only outgoing changes (local → remote).
- Shows both incoming and outgoing changes (remote ↔ local).
- Shows conflicting changes.
- Updates all local resources with incoming changes after prompt.
- Brings up the commit dialog to commit all outgoing changes.
- Breaks up the change lists by revisions.
There are a few other views which weren't covered that have additional icons, but this should hopefully be a good start. Let me know if there is anything important missing, or any of these descriptions seem to differ from your actual experience.