From owner-freebsd-arch Thu Jan 31 4:16:25 2002 Delivered-To: freebsd-arch@freebsd.org Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by hub.freebsd.org (Postfix) with ESMTP id CB4D737B400 for ; Thu, 31 Jan 2002 04:16:10 -0800 (PST) Received: from sheldonh (helo=axl.seasidesoftware.co.za) by axl.seasidesoftware.co.za with local-esmtp (Exim 3.33 #1) id 16WGB6-000Khw-00; Thu, 31 Jan 2002 14:18:56 +0200 From: Sheldon Hearn To: Marco Molteni Cc: arch@FreeBSD.org Subject: Re: Adding support for a global src tree serial number In-reply-to: Your message of "Thu, 31 Jan 2002 12:28:50 +0100." <20020131112850.GB28361@cobweb.example.org> Date: Thu, 31 Jan 2002 14:18:56 +0200 Message-ID: <79603.1012479536@axl.seasidesoftware.co.za> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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