RC Command: /version

“/version”

To output the Revision number of the GServer build.
In the case someone has an external host, or they forgot which build they are using.

Yeah. That won’t work. Automagically saving the revision number needs some SVN hacks and I don’t think it is possible to do that using Google Code’s repository.

I think SVN has something you can put in the define that automagically defines to the SVN revision number on compile. I’m pretty sure we used to use that on sourceforge’s svn.

[QUOTE=Cadavre;34836]I think SVN has something you can put in the define that automagically defines to the SVN revision number on compile. I’m pretty sure we used to use that on sourceforge’s svn.[/QUOTE]
Nah for that we just kept changing the “build version” in the source code.
Damn, woulda been a nice feature. :frowning:

[QUOTE=Beholder;34839]
Nah for that we just kept changing the “build version” in the source code.
Damn, woulda been a nice feature. :frowning:
[/QUOTE]

No, I’m pretty sure we used to have atleast a text string early development that stated revision number. I think Agret was responsible for that thing.

Merged doublepost_______________

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

Meh, I recall there being a #DEFINE for the version in our old code.

I remember that we used $Revision$

[QUOTE=Cadavre;34840]
No, I’m pretty sure we used to have atleast a text string early development that stated revision number. I think Agret was responsible for that thing.

Merged doublepost_______________

http://subversion.apache.org/faq.html#version-value-in-source
[/QUOTE]

And all of those are non-portable.

Merged doublepost_______________

The only real “solution” is to force everybody to install the subversion command line tools and write a custom build event to use svnversion to create a special revision file.

I’m pretty sure $Revision$ is a standard thing on Subversion.

[QUOTE=Cadavre;34850]I’m pretty sure $Revision$ is a standard thing on Subversion.[/QUOTE]
It only returns the revision that single file was last updated on, not the global revision of your entire source tree. So it is useless.