Author Topic: [not a bug] r2632: --version don't display svn revision  (Read 775 times)

david

  • Guest
[not a bug] r2632: --version don't display svn revision
« on: 8 October 2011, 14:17:42 »
Hi

Ubuntu 11.04 64bit
v3.5.3-dev-GNUC: 40502 [64bit]-Oct  8 2011 15:39:48, SVN: [Rev: ], [STREFLOP]
running threads = 0

 ./megaglest --version
v3.5.3-dev-GNUC: 40502 [64bit]-Oct  8 2011 15:39:48, SVN: [Rev: ], [STREFLOP]
« Last Edit: 15 October 2011, 12:00:30 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: --version don't display svn revision
« Reply #1 on: 8 October 2011, 18:17:01 »
I think that's because this is not a subversion working copy but an actual build. Keep in mind this is just a development build, so such things will not neccessarily get fixed.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

david

  • Guest
Re: 3.5.3-dev: --version don't display svn revision
« Reply #2 on: 9 October 2011, 09:39:32 »
I thought it was important to help testing and report bugs.
I will get revision number other way.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.5.3-dev: --version don't display svn revision
« Reply #3 on: 10 October 2011, 10:15:17 »
Yes, helping to test and reporting bugs is very appreciated, David. Please continue to do so.
If you are working in a subversion working copy then the SVN revision should indeed be properly detected by the game, if it does not then it's probably a bug.

My point was just that this issue, if it exists, is most likely limited to development builds but will not occur on releases.

You can use the svn info command to determine which revision the subversion working copy is on. The svn update command will also display it when it has completed updating.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

david

  • Guest
Re: 3.5.3-dev: --version don't display svn revision
« Reply #4 on: 11 October 2011, 19:37:10 »
Thank you Tomreyn, I didn't know svn info command.
I've forgotten to read doc since I use svn with some plugins and not with docs.

I post this thread because when you launch
megaglest --version

the rev didn't displayed.

but currently it does:
v3.5.3-dev-GNUC: 40502 [64bit]-Oct 11 2011 21:32:42, SVN: [Rev: 2632], [STREFLOP]
running threads = 0

So this thread is solved now!!!! ;D

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.5.3-dev: --version don't display svn revision
« Reply #5 on: 11 October 2011, 20:01:56 »
Both windows and linux compilations require the project source to have been checked out using svn. If the folder is not an svn folder then the rev info will be missing.

Thanks