Author Topic: Why the revision number in program does not match as in SVN?  (Read 3677 times)

Offline sarun

  • Multiple posting newcomer
  • *
  • Posts: 14
Why the revision number in program does not match as in SVN?
« 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9595
Re: Why the revision number in program does not match as in SVN?
« Reply #1 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline sarun

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Why the revision number in program does not match as in SVN?
« Reply #2 on: February 13, 2012, 04:42:24 pm »
Thanks. (I'm still compiling the "autorevision" plugin)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9595
Re: Why the revision number in program does not match as in SVN?
« Reply #3 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
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline sarun

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Why the revision number in program does not match as in SVN?
« Reply #4 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6944
    • My Best Post
Re: Why the revision number in program does not match as in SVN?
« Reply #5 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.
« Last Edit: February 13, 2012, 06:46:40 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 563
Re: Why the revision number in program does not match as in SVN?
« Reply #6 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
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.4 (git), Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32). Tests and switch to msys2 and gcc 10.1 compilers.