[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Things you must consider for version numbering

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-12-17 03:39:51 CET

Greg Hudson wrote:
> Here are Karl's answers, as best I understand them:
>
> 1) subversion-unstable-1.1.0
> 2) subversion-unstable-1.1.1
> 3) subversion-1.2.0
> 4) subversion-1.2.1
> 5) subversion-unstable-1.3.0

And my suggestions would be the following (more like a combination of the two):

    1) subversion-unstable-1.1.0-rXXXX
    2) subversion-unstable-1.1.1-rXXXX
    3) subversion-1.2.0
    4) subversion-1.2.1
    5) subversion-unstable-1.3.0-rXXXX

because e.g. #1 could be built from multiple revs, depending on when during that
week or two that I ran 'svn up' before building. Remember, someone might use a
version other then one that was packaged (whether we are talking about tar files
or zipped Windows installers). By appending the revision number to any
non-stable release, we can immediately say "Ah, you are building against TRUNK,
not one of our snapshots!"

The only other alternative I would offer is this:

    2b) subversion-1.2.0-RC1

since that more closely replicates what (B) corresponds to. I even have one way
of doing that without too much pain (attached).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Index: subversion/include/svn_version.h
===================================================================
--- subversion/include/svn_version.h (revision 8000)
+++ subversion/include/svn_version.h (working copy)
@@ -63,6 +63,12 @@
  */
 #define SVN_VER_MICRO 0
 
+/** Sequence number
+ *
+ * Only used for release candidates (i.e. SVN_VER_MICRO -1)
+ */
+#define SVN_VER_SEQ 0
+
 /** Library version number.
  *
  * Modify whenever there's an incompatible change in the library ABI.
@@ -111,7 +117,11 @@
 /** Version number */
 #define SVN_VER_NUM APR_STRINGIFY(SVN_VER_MAJOR) \
                            "." APR_STRINGIFY(SVN_VER_MINOR) \
+#if SVN_VER_MICRO == -1 /* Just for Release Candidates */
+ ".0-RC" APR_STRINGIFY(SVN_VER_SEQ)
+#else
                            "." APR_STRINGIFY(SVN_VER_MICRO)
+#endif
 
 /** Version number with tag (contains no whitespace) */
 #define SVN_VER_NUMBER SVN_VER_NUM SVN_VER_NUMTAG

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 03:40:27 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.