[typo] Version number
William A. Carrel
william.a at carrel.org
Sun Nov 20 21:04:55 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
On Nov 20, 2005, at 3:12 PM, Scott Laird wrote:
> On Nov 20, 2005, at 12:07 PM, William A. Carrel wrote:
>> The revision number in trunk/lib/typo_version.rb will not be updated
>> unless the file is modified somehow. The 741 being seen was the last
>> changeset that modified that file.
> Yeah, that's was I was afraid of. Perhaps we could add a commit hook
> to modify the file?
Perhaps, but that feels pretty ugly. It's going to clutter up every
changeset with non-relevant changed lines, plus open questions like:
do you iterate the file only for commits to the trunk or also for
commits on branches/tags which will iterate the repository revision
If the existing typo_version.rb == 'HEAD' and there is a .svn
directory at the typo root then try to get the version with
svnversion (or by parsing .svn/entries on the typo root, it's some
pretty cut and dry XML). If it's a real point-release version then
put that in typo_version.rb instead of 'HEAD'.
All of these answers feel like solutions in search of a problem.
Developers and users who are running HEAD rather than a point release
should be prepared to run things like "svnversion /opt/my/typo" when
submitting problem reports. Adding that to the "how to report an
issue" page seems like a good thing to do anyway.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
-----END PGP SIGNATURE-----
More information about the Typo-list