Get current revision number in Subclipse?

回眸只為那壹抹淺笑 提交于 2019-12-07 17:35:29

问题


While normally I use the Subversive plugin (Eclipse) for SVN, I've decided to try Subclipse, which seems to be more popular and better documented.

Something I've taken for granted from Subversive is the current revision number shown. With Subversive, this is shown very clearly next to the menu:

MyProject 43 [https://code.google.com...]

Subversive is a bit different and the revision number is nowhere to be seen:

MyProject [foo/trunk]

How can I get the revision number to be shown in Subclipse? It's something I've come to rely on..


回答1:


Just downloaded and installed the latest Subclipse 1.6.2 in my Galileo eclipse3.5RC4.

In "Windows > Preferences > Team > SVN > Label decorations":

Tab "Text"

Add {revision} to the "Project Format" line:

{dirty_flag}{name} {revision} [{url_short}]

That would get the project to be displayed exactly as:

MyProject 43 [https://code.google.com...]

See also this help page, although the latest 1.6.2 plugin has changed a bit its preferences display:



来源:https://stackoverflow.com/questions/973788/get-current-revision-number-in-subclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!