Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 14:18:56 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Marco Molteni <molter@tin.it>
Cc:        arch@FreeBSD.org
Subject:   Re: Adding support for a global src tree serial number 
Message-ID:  <79603.1012479536@axl.seasidesoftware.co.za>
In-Reply-To: Your message of "Thu, 31 Jan 2002 12:28:50 %2B0100." <20020131112850.GB28361@cobweb.example.org> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 31 Jan 2002 12:28:50 +0100, Marco Molteni wrote:

> the only drawback I see to your approach is that the serial number you are
> proposing is dateless, so folks will probably ask for a date too:
> 
> > 	This problem was introduced in serial number 11809 and was
> > 	corrected in serial number 11832.

I can see why support folks would want a date, however it's a trivial
thing to determine from the CVS logs for the src/SERIAL file. [1]

That said, I can't think of any reason _not_ to prepend a date string to
the serial number.  You said this:

> One difference is that with your proposal two successive serial
> numbers have a difference of 1, for example 11833 - 11832 = 1, while
> with mine you loose this.

But I can't see any value in knowing the number of commits made to the
entire tree between two snapshots.

Another advantage of your idea is that it allows for a fixed-width
serial number until

a) The year 10000AD.

b) The number of commits (not deltas!) per day reaches an unexpectedly
   high number.

For example, we could say that the serial number should be constructed
as follows:

	YYYYMMDDXXXXXXX
	200201310000001

This example shows the first commit of the day for 31 January 2001
(freefall time).

Here, we use 4 digits to represent the year, 2 digits to represent the
month, 2 digits to represent the day and 7 digits to represent the
commit.  This assumes that we would never see more than 999,999 commits
in a single day.  I'm not sure this will happen before the year 10000AD.
;-)

Ciao,
Sheldon.

[1] And anyway, do we really want to clutter the serial file with CVS
    revision Id, which may cause confusion?  Certainly, we won't be
    allowing manual commits to this file!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79603.1012479536>