Is there a way to specify $ GlobalRev $ in a file using Subclipse for Eclipse

I know how to get the local version number in a file with Eclipse. Right-click the command, set the property, then svn: keywords Id.

But how do you get $ GlobalRev $? There's something called svnversion that should do this, but is it integrated into Subclipse?

+3
source share
1 answer

Subversion does not support the $ GlobalRev $ keyword concept. There is a command line tool called svnversion that will output versions for stdout. You can combine this with a script to write this to a file. This is asked all the time, so there is a FAQ:

http://subversion.tigris.org/faq.html#version-value-in-source

Windows, , SubWCRev.exe, svnversion, . , , - . :

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

Eclipse, External Tool.

+4

Source: https://habr.com/ru/post/1726090/


All Articles