Made buildinfo aware of builds from GIT
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Nov 2013 13:21:39 +0000 (13:21 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Nov 2013 13:21:39 +0000 (13:21 +0000)
commit2010c6ad6cae41b5f13b36339404ff60c98ae915
tree543e34b74bf56ce9338f3ae0e029852cdd78905a
parentd07f3f793b8c7596e36249d589aafcf63611cc1d
Made buildinfo aware of builds from GIT

- Use commit number since last annotated tag as a
  revision number replacement. It'll eb followed
  by 'M' symbol if there're local modification in
  the source tree.

- Commit short SHA1 is included. Helps getting
  information about commit used to build blender
  with much faster.

- If build is not done from master branch, this also
  will be noticed in the splash screen.

This commit also replaces revision stored in the
files with git-specific fields (change and hash).
This is kind of breaks compatibility, meaning
files which were saved before this change wouldn't
display any information about which revision they
were saved with. When we'll finally switch to git,
we'll see proper hash and change number since
previous release in the files, for until then
svn version will be used as a change number and
hash will be empty.

Not a huge deal, since this field was only used
by developers to help torubleshooting things and
isn't needed for blender itself.

Some additional tweaks are probably needed :)
15 files changed:
build_files/cmake/buildinfo.cmake
build_files/scons/tools/Blender.py
release/scripts/modules/sys_info.py
source/blender/blenkernel/BKE_main.h
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/collada/AnimationExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/makesdna/DNA_fileglobal_types.h
source/blender/python/intern/bpy_app.c
source/blender/windowmanager/intern/wm_operators.c
source/blenderplayer/bad_level_call_stubs/CMakeLists.txt
source/creator/CMakeLists.txt
source/creator/buildinfo.c
source/creator/creator.c