View Full Version : subversion revision number
mikro
10th October 2006, 08:57
is there any chance to get at subversions revision number for my project to write it in my about-page that is worth the work?
I see lot of applications writing their revisionnumber there and it makes sense to make sure you have the latest version, but i doubt that there is an easy way?
jpn
10th October 2006, 09:11
For example like:
static QString revision()
{
QString rev("$Revision: 1152 $");
rev.remove(QChar('$'));
return rev.simplified();
}
The revision will only get updated when the file containing the piece of code above changes, though..
mikro
10th October 2006, 09:31
how does this work? the $ make it a kind of makro that subversion recognizes?
jpn
10th October 2006, 09:33
svn:keywords (http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4)
AlexKiriukha
13th October 2006, 19:23
The revision will only get updated when the file containing the piece of code above changes, though..
Yes :-( Is there any way to get it always updated?
jacek
14th October 2006, 00:35
Yes :-( Is there any way to get it always updated?
Maybe you should try the BundleMan (http://public.dev.nuxeo.com/~ben/bundleman/)? I didn't have time to evaluate it, but maybe you will find it interesting.
AlexKiriukha
16th October 2006, 20:13
Maybe you should try the BundleMan (http://public.dev.nuxeo.com/~ben/bundleman/)? I didn't have time to evaluate it, but maybe you will find it interesting.
I have not evaluated that too but it gives me idea: in subversion you can write custom scripts that executed on different events. So, if you are administrator of repository, you can easily extend it to whatever you wish ;)
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.