[pmwiki-users] version number (was: 2.0.6 release)

John Rankin john.rankin at affinity.co.nz
Tue Sep 20 21:27:08 CDT 2005

On Saturday, 17 September 2005 6:41 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>And lastly, for script and recipe authors, there is now a 
>$VersionNum numeric value that makes it easier to determine if 
>the currently running version of PmWiki is older or newer than a 
>known release. $VersionNum is composed from the release number by 
>padding the major and minor release numbers with zeroes to three 
>digits, thus $VersionNum for this release (2.0.6) is 2000006, while
>a release like "2.1.24" will have $VersionNum set to 2001024.
Is there a convention for dealing with versions of the form


We need the same idea for the wikipublisher library, so we can
detect requests from older versions at the typesetting server. 
It seems sensible to use the same convention as pmwiki.
The scheme has to maintain the sequence of 2.0.beta1 < 2.0.1
< 2.1.beta1 < 2.1.1 and so on.

It's my understanding that some projects have adopted a
convention of using odd numbered major versions to designate
beta and even numbers to designate stable. So 2.0.beta3
becomes 1.9.3, 2.0.3 designates a stable release and 2.1.1 
starts the next beta series.

I'm sure there are other solutions.

John Rankin

More information about the pmwiki-users mailing list