Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current revision number in Subclipse?

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..

like image 354
Lucky Avatar asked Dec 14 '22 04:12

Lucky


1 Answers

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:

http://help.collab.net/topic/org.tigris.subclipse.doc/images/screenshots/preferences-svn-dec-text.png

like image 171
VonC Avatar answered Dec 25 '22 05:12

VonC