Ticket #477 (closed defect: wontfix)
include svn revision number
| Reported by: | fabio | Owned by: | |
|---|---|---|---|
| Priority: | If Time Permits | Milestone: | Alpha 3 |
| Component: | Non-game systems | Keywords: | |
| Cc: |
Description
WRT r7400 it would be nice to also include svn version from which the code get compiled, see http://subversion.apache.org/faq.html#version-value-in-source
Change History
comment:2 Changed 3 years ago by anonymous
- Milestone Unclassified deleted
Milestone Unclassified deleted
comment:4 Changed 3 years ago by fabio
I think that this could be closed since regular users should be using the provided tarballs which other than the revision number also include the precompressed texture. Also ubuntu packages in the 0ad.dev PPA are using this approach. Users compiling from svn should know how to get the svn revision.
Note: See
TracTickets for help on using
tickets.

We tried to set that up a while ago (see svn_revision) - the problem was that svnversion is quite slow (it has to check the entire working copy), and adding a couple of seconds to every build is bad for iteration times during development. I don't know how we could avoid that cost while still being sure the recorded number is reliable.
(Also we'd need to be more careful to not update the saved revision number unless it changes, to avoid unnecessary recompilation and re-linking each time the file is regenerated, and it might take a little effort to work out how to do that on Windows.)
Currently svn_revision.txt is only updated by the Windows autobuilder, and the snapshots in #463 will be given the right number. Normal SVN checkouts just get "custom build" and no number.
It'd be good to find a solution which