Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sarun on February 13, 2012, 04:27:41 pm

Title: Why the revision number in program does not match as in SVN?
Post by: sarun on February 13, 2012, 04:27:41 pm
I've just retrive a source code from SVN, and it says that it checked out revision number 7798 but when I build it, the program says that it's revision number 7746. Why this can be happened?
Title: Re: Why the revision number in program does not match as in SVN?
Post by: MortenMacFly on February 13, 2012, 04:36:46 pm
I've just retrive a source code from SVN, and it says that it checked out revision number 7798 but when I build it, the program says that it's revision number 7746. Why this can be happened?
Because autorevision was unable to call the SVN command (i.e. you don't ave the subversion "svn" executable in the path).
Title: Re: Why the revision number in program does not match as in SVN?
Post by: sarun on February 13, 2012, 04:42:24 pm
Thanks. (I'm still compiling the "autorevision" plugin)
Title: Re: Why the revision number in program does not match as in SVN?
Post by: MortenMacFly on February 13, 2012, 04:43:40 pm
Thanks. (I'm still compiling the "autorevision" plugin)
That's no the plugin, but the executable under src\build_tools\autorevision
Title: Re: Why the revision number in program does not match as in SVN?
Post by: sarun on February 13, 2012, 05:26:22 pm
Sorry, I've been misunderstood with plugin "AutoVersioning". But I'm sure that svn is in the path. How could I update the version number?
Title: Re: Why the revision number in program does not match as in SVN?
Post by: stahta01 on February 13, 2012, 06:44:05 pm
Delete the version file; I do not recall the name of the file; but likely has ver in the filename with .h as the extension.
Maybe "autorevision.h"

Tim S.
Title: Re: Why the revision number in program does not match as in SVN?
Post by: gd_on on February 13, 2012, 08:05:12 pm
A small precision.
The svn number retrieved by svn may have a small difference with the last patch, because this svn number applies to the last patch available for the version you are compiling.
For example, after updating to svn 7798, if you compile a wxsmith branch version, you should obtain more a less a svn number : 7791 and for a wxpropgrid_debugger version svn number 7790.
I tried myself to update with svn 7798 but I obtain svn 7793 : quite strange but may be quite normal because most patches between 7792 and 7798 does not apply to windows or trunk version.

gd_on