reox wrote: ↑Sat Feb 16, 2019 1:14 pm
The current rev should be something like:
Code: Select all
$ git rev-list --all --count
15988
So 15976 looks OK for me...
No, it's wrong. This is not how the revision number is counted. Again, have a look at how Github lists it as of right this instant:
- FC_Github_commits_15897.png (19.18 KiB) Viewed 951 times
So your value of 15976 exceeds the amount of commits.
The information listed in the About FreeCAD menu is extracted from the
/src/Build/Version.h file that is generated by the CMake configuration. In the source code,
/src/Build/CMakeLists.txt executes
/src/Tools/SubWCRev.py.
After pulling from master in my code folder and running cmake in my build folder right this instant, this is what my Version.h file looks like:
Code: Select all
// Version Number
#define FCVersionMajor "0"
#define FCVersionMinor "18"
#define FCVersionName "Vulcan"
// test: $Format:Hash (%H), Date: %ci$
#define FCRevision "15897 (Git)" //Highest committed revision number
#define FCRevisionDate "2019/02/16 15:30:46" //Date of highest committed revision
#define FCRepositoryURL "git://github.com/FreeCAD/FreeCAD.git master" //Repository URL of the working copy
// Git relevant stuff
#define FCRepositoryHash "36dc7b42425dcb08abf6313c6dee6ce306b7bcdc"
#define FCRepositoryBranch "master"
FCRevision is 15897 which matches the number of commits shown on Github for master. That your revision number is higher was inexplicable to me, which led me to guess that you were pulling from a separate branch, not from master.