Author Topic: Why the revision number in program does not match as in SVN?  (Read 5844 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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://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: 7582
    • 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 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
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 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).