Re: [vassalengine-devel] stable and unstable releases
Brought to you by:
rodneykinney,
uckelman
|
From: Joel U. <uck...@no...> - 2007-12-18 14:51:38
|
Thus spake Joel Uckelman: > > Follow-up: > > Here's what I implemented in 3.1.0-svn2708: > > The version string has two parts: The version number, and the (optional) > version tag. The version number is a series of period-seperated nonnegative > integers. The version tag is of the form '-(svn|beta|rc)\d+'. > > The higher-order parts of the version string are on the left. Version > numbers are ordered how you'd expect. E.g. 3.0.1 < 3.0.10 < 3.1.0. > Tags are significant only if two version strings have the same version > number. > > Translate a tag into ingeters as folows: > > - --> -1 > svn --> 0 > beta --> 1 > rc --> 2 > \d+ --> itself > > This ensures the following order: If two version have the same version > number, but one has a tag and the other doesn't, the tagless one is later; > and svn < beta < rc. > > E.g.: 3.0.15 < 3.1.0-svn2708 < 3.1.0-beta1 < 3.1.0-rc3 < 3.1.0 > > Comments? > I found a bug. Minor revision: The end-of-string is mapped to -1, and the tag hyphen is mapped to -2. That gives the correct ordering between full releases and releases with tags. -- J. |