From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7422 invoked by alias); 5 Aug 2019 15:34:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7328 invoked by uid 89); 5 Aug 2019 15:34:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_BODY,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=dates X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Aug 2019 15:34:37 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1C118308FBA0; Mon, 5 Aug 2019 15:34:36 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-200.ams2.redhat.com [10.36.116.200]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A699060C83; Mon, 5 Aug 2019 15:34:35 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id x75FYXjU021082; Mon, 5 Aug 2019 17:34:33 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id x75FYU3K021081; Mon, 5 Aug 2019 17:34:30 +0200 Date: Mon, 05 Aug 2019 15:34:00 -0000 From: Jakub Jelinek To: Jason Merrill Cc: Martin =?utf-8?B?TGnFoWth?= , Richard Biener , Maxim Kuvyrkov , GCC Patches , Paolo Bonzini Subject: Re: Monotonically increasing counter (was Re: [Contrib PATCH] Add scripts to convert GCC repo from SVN to Git) Message-ID: <20190805153430.GT2726@tucnak> Reply-To: Jakub Jelinek References: <846D2EF4-879F-4518-ABA5-7DD74E6B4F18@linaro.org> <42281a3e-7a7a-d115-2468-b01275d00821@suse.cz> <1e000037-44bd-7d5a-3817-d5048ecc4330@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00279.txt.bz2 On Mon, Aug 05, 2019 at 11:20:09AM -0400, Jason Merrill wrote: > I agree. But for those who want a monotonically increasing > identifier, there's already one in git: CommitDate. In the discussion > of this issue four years ago, While commit date is monotonically increasing, it has the problem that at certain dates there are very few commits, at others many. When doing bisection by hand, one does the revision computation (min+max)/2 in head (it doesn't have to be precise of course, just roughly, and isn't perfect either, because in svn all of trunk and branches contribute to the revision numbers), with dates it would be division into further uneven chunks. Could we tag the branchpoints, say when we branch off gcc 10, we tag the branchpoint as tags/r11 and then we could use r11-123 as 123th commit on the trunk since the branchpoint, and let bugzilla and web redirection handle those rNN-NNNN style identifiers? git describe --all --match 'r[0-9]*' ... | sed ... to map hashes etc. to these rNN-NNNN identifiers and something to map them back to hashes say for git web? Jakub