From owner-freebsd-git@freebsd.org Thu Aug 6 22:01:41 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D316D3AD306 for ; Thu, 6 Aug 2020 22:01:41 +0000 (UTC) (envelope-from Alexander.Sideropoulos@netapp.com) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2063.outbound.protection.outlook.com [40.107.244.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BN2Wl55xYz3S0g for ; Thu, 6 Aug 2020 22:01:37 +0000 (UTC) (envelope-from Alexander.Sideropoulos@netapp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fVXZFtXZPqRIOpzELp2TfHUfV9pYYvX6ace8l///vZi+T9saEu7oOiUWexI9BZViFnpom64GeTGMd4l5tYkxHjJj1+/cL9D63SnL/VloS0FhKJk7Z52cg4zuzlz4C/EJtw8xMFto6CjBLvtXZ3wadcVVljhCdAnFepWY0MaH67npKF5XfVF0tYtZC6sLvX8xYtuMpQpcKEfcNSNv6c5K+/sIURKKBZg0NWyyTRcVo3gay7nZDhLBLbIOPFkcKQSz9NoLCRIIAZmOCeZxSWq2olb6YAalgV7WmQxKeLQVMJgNxrCnOquLhXkLtIOR020EGbhLZ1/VSB1RQ9FY0rl7pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xT0OsHcrrAEPXWl6/F5xe2icJJVHYl6U/vGStE4BPpE=; b=O9utgFYCPd+upfw8UgbGyUToEyXruLfhShOcSI5tSsDmdhRRrSqAS/SIHt3Yyl4iofd5lpyh/V5BhFG8vwgykuWSmhfmTLyp3Z7ZfQa1t0nRLGyL9LhVExLraptIEMlNTB6y7rEhcEnPtSJG6Vl5WGnJgTPVyQlLy4Qj2ZEluIJfsvhpPDndCpIeNoxN1o1o82nvYYbuwZyP/TA23GFqDBZIHqBnhc0tDA5tgxJCK0+EVUNUH9GLYIJ9X7XQ65i3Sk+IMWXRiThD08vDQbQleczTfHXlGOdOtcIGgoOPoSq38I6tOcrJrnkhoo9BSOQLB1jF4JIT2oPHSe9Z71+97w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netapp.com; dmarc=pass action=none header.from=netapp.com; dkim=pass header.d=netapp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xT0OsHcrrAEPXWl6/F5xe2icJJVHYl6U/vGStE4BPpE=; b=zeS4NiDerzlQ25PJ63gPrUAySHKTNonMn0cPSJ0PdEHoVzlj+qcRLLVQmBot2dBZF8Yv4fF8kFDMjNNMY+d2wt/6yD/1z4B5seg6ao+ru/lJFzb2t7mekz2Z3xNOTNQP0jw+OuUmXpiXod2S65WV1nxMRGLdgzItxygjKxEj6k8= Received: from BN6PR06MB3202.namprd06.prod.outlook.com (2603:10b6:405:47::15) by BN6PR06MB2900.namprd06.prod.outlook.com (2603:10b6:404:113::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Thu, 6 Aug 2020 22:01:35 +0000 Received: from BN6PR06MB3202.namprd06.prod.outlook.com ([fe80::5c72:ba91:c861:b0d5]) by BN6PR06MB3202.namprd06.prod.outlook.com ([fe80::5c72:ba91:c861:b0d5%3]) with mapi id 15.20.3261.019; Thu, 6 Aug 2020 22:01:35 +0000 From: "Sideropoulos, Alexander" To: "freebsd-git@freebsd.org" CC: "Maxwell, Larus" Subject: SVN Revision-Like IDs in Git Thread-Topic: SVN Revision-Like IDs in Git Thread-Index: AQHWbD0m9ktRg0aJEECvBjNJ69IjNA== Date: Thu, 6 Aug 2020 22:01:35 +0000 Message-ID: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.39.20071300 x-originating-ip: [216.240.19.104] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 221d446b-0185-4898-403d-08d83a54496c x-ms-traffictypediagnostic: BN6PR06MB2900: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CnVhk7G5kViis0rlQY7BFGDByPJ4MHQodoN7N0NM8Ek0wHvehydpTUX1garOpNIFxqIJXcL/zrLb3dbGQmNXilJfZsj5BCDrvSpzJvb8G4PfIQ32ykGKtMvACD8a301mPFF9bFfmI3iqGRrv0dp1AfKCq12HLiglqL4bcHRoS1WNXBCqy9u4nNn0swATmtcHfOHS8GRkvICV9eQFASv3JWOVgTVlAVVzFUHkosG3qIq+TbJ3yClMD4Ttg5Q86EPRPKFdStD9A9AOGk0JGn6Yd7bPrOG+5tfDUyspTnZOM+V0IYzKh/W9/IwBdLxbLTUb7Jpe3hlAP+J3X4jL02DZqcA+CY6yW9Wva81/pDIY7LdQPcGqrLkeajFhTgi2ScPVBgVAO7GwtyOPaoq4cf3UhA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR06MB3202.namprd06.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(366004)(346002)(376002)(396003)(39860400002)(4326008)(5660300002)(166002)(107886003)(33656002)(6512007)(6916009)(6506007)(36756003)(66476007)(8936002)(64756008)(66946007)(91956017)(86362001)(66446008)(66556008)(76116006)(966005)(26005)(6486002)(316002)(83380400001)(71200400001)(2906002)(186003)(4744005)(478600001)(8676002)(2616005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: LSSjMAvHIg//HvHi25arzMjjIsp2PwOtNSXwOxK2OfpsS4P7xuhQe1+qnf8/CokkLOZ9/ooE7nRofJOm/5yl84I+/5DBSy9fCTciY4oKxTvOHAhsrfNBqzDUVJOh7i8G2Af9tO+vtP2u1pedLy36MHmTwRm2kBjoEhARJjMnAd7a/4k66O99cvMHo1wcwHQKsOzjh/0QDfxokkjgsI2G/RkpQIiStHdI71/4qrIbMo2mXXUzbICTHDIelYmtgAU6PIqjJOxwIycJl5Hq1cA9TA7XfEiPSHtRvHsgTH9/vPnracQqqCnnfjKTe8QMKnOiFHeTGi99atQZSv0+IGIYvK7nQAmAqRRBY02X1+oeG8ENQnRJwb0irXlq4q8xQdtW3tylOu4787od79qmlJOyO0o9PZsdu4Bp+RZaj18wP+0TMuuH6hncmYwr5t1xgyd9mp1ZHJ/hILrSlJ+QXj56a9cNcLk2enz83/u33FdCMUQdxnZ0X6tpxgPqT6+e6rzp+cfeKOnsggh5f1NRZLbQqbDn96XOK5eeW7LZiEAVel5ziiKldiQETlNyBCUbPoJGx01Ry9J/6j0bA//Bb2kGaXzUzoRyPVhSd8CEhiQJ7vPVKXGSv35VKvSkmU+GJweahYSod6fkQ31QAY6LQ+YanQ== MIME-Version: 1.0 X-OriginatorOrg: netapp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR06MB3202.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 221d446b-0185-4898-403d-08d83a54496c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2020 22:01:35.5180 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YDW90k7p03FhqtSQQBlvmpPZMen9kohfK2QEVGPP2HHymipScN9ZwLa5kGCyLKV3H67vUrG3RZpjrG6BT6wlmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR06MB2900 X-Rspamd-Queue-Id: 4BN2Wl55xYz3S0g X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netapp.onmicrosoft.com header.s=selector1-netapp-onmicrosoft-com header.b=zeS4NiDe; dmarc=none; spf=pass (mx1.freebsd.org: domain of Alexander.Sideropoulos@netapp.com designates 40.107.244.63 as permitted sender) smtp.mailfrom=Alexander.Sideropoulos@netapp.com X-Spamd-Result: default: False [-3.27 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.035]; R_DKIM_ALLOW(-0.20)[netapp.onmicrosoft.com:s=selector1-netapp-onmicrosoft-com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16:c]; NEURAL_HAM_LONG(-0.99)[-0.986]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[netapp.com]; MIME_BASE64_TEXT_BOGUS(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[netapp.onmicrosoft.com:+]; MIME_BASE64_TEXT(0.10)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[40.107.244.63:from]; NEURAL_HAM_SHORT(-0.85)[-0.851]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.244.63:from] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2020 22:01:41 -0000 SGV5IGZvbGtzLA0KDQpBY2NvcmRpbmcgdG8gdGhpcyBwYWdlLi4uDQogICAgaHR0cHM6Ly9oYWNr bWQuaW8vX2x2eWwxQ2ZUc2F5QjNMMHY0Zm1MQSNXaGF0JUUyJTgwJTk5cy13aXRoLXRoZS1mdW5u eS1yZXZpc2lvbi1oYXNoZXMtSS13YW50LXJldmlzaW9uLW51bWJlcnMNCg0KLi4udGhlcmUgYXJl IG5vIHBsYW5zIHRvIHByb3ZpZGUgYW4gU1ZOLXJldmlzaW9uLWxpa2UgSUQgZm9yIEdpdCBjb21t aXRzIG9uY2UgdGhlIHN3aXRjaC1vdmVyIGhhcHBlbnMuDQoNCkF0IE5ldEFwcCwgd2UgcmVseSBv biB0aGUgU1ZOIHJldmlzaW9uIG51bWJlciB0byB1bmlxdWVseSBpZGVudGlmeSBvdXIgRnJlZUJT RCBiYXNlbGluZSBhbmQgZXZlcnkgY2hlcnJ5LXBpY2tlZCBwYXRjaCB3ZSBhcHBseSBvbiB0b3Ag b2YgaXQuIFdlIGNvdWxkIHVwZGF0ZSBhbGwgb3VyIHRvb2xpbmcgdG8gYWNjZXB0IEdpdCBoYXNo ZXMsIGJ1dCB0aGlzIGlzIG5vdCBhIHNtYWxsIHRhc2suIEFuZCBJIGltYWdpbmUgd2UgYXJlIG5v dCB0aGUgb25seSBkb3duc3RyZWFtIHByb2plY3QgcmVsaWFudCB1cG9uIFNWTiByZXZpc2lvbiBu dW1iZXJzLg0KDQpTaW5jZSB0aGUgU1ZOIHJldmlzaW9uIElEIGlzIHJlYWxseSBqdXN0IGFuIGFy Yml0cmFyeSBudW1iZXIsIGhhcyB0aGVyZSBiZWVuIGFueSB0aG91Z2h0IGluIHNpbXBseSBjb250 aW51aW5nIHRvIG1hbnVmYWN0dXJlIHRoZXNlIG51bWJlcnMgZm9yIEdpdCBjb21taXRzIGdvaW5n IGZvcndhcmQ/IEl0IGNvdWxkIGV2ZW4gYmUgYSBwb3N0LWNvbW1pdCBvcGVyYXRpb24gd2hlcmUg dGhlIEdpdCBub3RlcyBhcmUgdXBkYXRlZCB3aXRoIGEgdW5pcXVlIChpbmNyZWFzaW5nKSBJRCwg anVzdCBhcyBpcyBkb25lIHRvZGF5Lg0KDQpUaG91Z2h0cz8NCi0tYXANCg== From owner-freebsd-git@freebsd.org Fri Aug 7 01:26:58 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D64513B005C for ; Fri, 7 Aug 2020 01:26:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BN74f0RyFz3bX1 for ; Fri, 7 Aug 2020 01:26:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x835.google.com with SMTP id v22so208570qtq.8 for ; Thu, 06 Aug 2020 18:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JrQ1GbF715l38kSmRo+WR70BgXHIQT67Ybvc6rPK29g=; b=ETJDvz+qua5fyTrndu8boxq+Ju5vxNj51IRj2TccQoWB0nL7xJLdLfcWRJu4lQMphD yMRu8SDSEFxyQ1hp0VKH7k0mBRxhBOOc5P1inCkaBKg8IyAX+0/KuJYm2dzJrTZCrITW dH5SFsfKvF7gFl8A9AhT3svTFK7lUxi13JKKIEYcubnQXyjs3l29NNmrcr30WWJnmqEQ Bp2UShHW8nB0qsM/jq99+rOZ1zCRMBQXr5yNsBVq08QkR70A8WoAYZ8zFc3yOycgitum p5ozGR41gtX8tSVlfQfRNSNWAorhlS65x3pVwx7U/FYp0KaJd+330mc8bmERO6jTxsvg NJ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JrQ1GbF715l38kSmRo+WR70BgXHIQT67Ybvc6rPK29g=; b=XGTwiR60VE/Pr6QrDXTATsA6YLqqIM6q06+8hcbD4LJXOLhAjEg6RpqKWVHMjU879S 3FCjQmA5W7XwwzAeJiEGGCP/1wuKDtFCqRdtmxPAa/GRUNlhFA+N4rPdfDuUqQZMsSgm keLQZKHglxvgCQX4gT81646ocUW02X24WWC4eTJ3o4EzQzNB9UEZBL8wkmH772CSyWCF ia2G8Im3QHK8+f9Zxo3W36KdLuk+80GFi/fBviSbqSwjASgC2d/4JdxQHHUSaTAUSqGb nc1ULUde6MIZhUrP+Fs5rCJe+gnh+6KTQIp1JTuwNuVcejtkULM2q8SSwK2eF2gd9vJM 46sw== X-Gm-Message-State: AOAM5330XQ61ikJHTxUEdXX3xUxYHgRmU/bTUeFpgxv41kQjLNE5EHm4 fvPCHAymujrP8boTBdPhNWkllq9jPLdb/EiK5V4riQ== X-Google-Smtp-Source: ABdhPJwBk32GhOFokUurjT+7DIPmuIqaNXosdKgDDHwGyU0hyNfH2bgaPBViDEUmI/8rtenM0gYk1o9BiLP9l4fwqoE= X-Received: by 2002:ac8:50a:: with SMTP id u10mr11784719qtg.175.1596763616801; Thu, 06 Aug 2020 18:26:56 -0700 (PDT) MIME-Version: 1.0 References: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> In-Reply-To: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> From: Warner Losh Date: Thu, 6 Aug 2020 19:26:44 -0600 Message-ID: Subject: Re: SVN Revision-Like IDs in Git To: "Sideropoulos, Alexander" Cc: freebsd-git@freebsd.org, "Maxwell, Larus" X-Rspamd-Queue-Id: 4BN74f0RyFz3bX1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=ETJDvz+q; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::835) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.48 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.92)[-0.924]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.57)[-0.569]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 01:26:58 -0000 On Thu, Aug 6, 2020, 4:01 PM Sideropoulos, Alexander < Alexander.Sideropoulos@netapp.com> wrote: > Hey folks, > > According to this page... > > https://hackmd.io/_lvyl1CfTsayB3L0v4fmLA#What%E2%80%99s-with-the-funny-revision-hashes-I-want-revision-numbers > > ...there are no plans to provide an SVN-revision-like ID for Git commits > once the switch-over happens. > > At NetApp, we rely on the SVN revision number to uniquely identify our > FreeBSD baseline and every cherry-picked patch we apply on top of it. We > could update all our tooling to accept Git hashes, but this is not a small > task. And I imagine we are not the only downstream project reliant upon SVN > revision numbers. > > Since the SVN revision ID is really just an arbitrary number, has there > been any thought in simply continuing to manufacture these numbers for Git > commits going forward? It could even be a post-commit operation where the > Git notes are updated with a unique (increasing) ID, just as is done today. > > Thoughts? > Git has the ability to generate a number of commits since the last tag (or maybe arbitrary tag). That is appropriately the same thing if you don't need temporal stability between branches... Warner > --ap > _______________________________________________ > freebsd-git@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-git > To unsubscribe, send any mail to "freebsd-git-unsubscribe@freebsd.org" > From owner-freebsd-git@freebsd.org Fri Aug 7 13:22:41 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3F06B3BA935 for ; Fri, 7 Aug 2020 13:22:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BNQyT0zPkz4Qfd; Fri, 7 Aug 2020 13:22:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id E640E13E3B; Fri, 7 Aug 2020 13:22:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::4178:cb5a:4083:fea5] (unknown [IPv6:2001:470:7a58:0:4178:cb5a:4083:fea5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5BFC4270F; Fri, 7 Aug 2020 15:22:38 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_BC548FFB-8FB8-4578-9BFF-AEA029128AC7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: SVN Revision-Like IDs in Git Date: Fri, 7 Aug 2020 15:22:30 +0200 In-Reply-To: Cc: "Sideropoulos, Alexander" , freebsd-git@freebsd.org, "Maxwell, Larus" To: Warner Losh References: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> X-Mailer: Apple Mail (2.3445.104.15) X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 13:22:41 -0000 --Apple-Mail=_BC548FFB-8FB8-4578-9BFF-AEA029128AC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 7 Aug 2020, at 03:26, Warner Losh wrote: >=20 > On Thu, Aug 6, 2020, 4:01 PM Sideropoulos, Alexander < > Alexander.Sideropoulos@netapp.com> wrote: >=20 >> Hey folks, >>=20 >> According to this page... >>=20 >> = https://hackmd.io/_lvyl1CfTsayB3L0v4fmLA#What%E2%80%99s-with-the-funny-rev= ision-hashes-I-want-revision-numbers >>=20 >> ...there are no plans to provide an SVN-revision-like ID for Git = commits >> once the switch-over happens. >>=20 >> At NetApp, we rely on the SVN revision number to uniquely identify = our >> FreeBSD baseline and every cherry-picked patch we apply on top of it. = We >> could update all our tooling to accept Git hashes, but this is not a = small >> task. And I imagine we are not the only downstream project reliant = upon SVN >> revision numbers. >>=20 >> Since the SVN revision ID is really just an arbitrary number, has = there >> been any thought in simply continuing to manufacture these numbers = for Git >> commits going forward? It could even be a post-commit operation where = the >> Git notes are updated with a unique (increasing) ID, just as is done = today. >>=20 >> Thoughts? >>=20 >=20 > Git has the ability to generate a number of commits since the last tag = (or > maybe arbitrary tag). That is appropriately the same thing if you = don't > need temporal stability between branches... A similar discussion has also taken place in the past when the LLVM project was planning to migrate from Subversion to Git (and then to GitHub). The gist was mostly written down here: = https://llvm.org/docs/Proposals/GitHubMove.html#on-managing-revision-numbe= rs-with-git In short, if you forbid merge commits (either by policy or some server side hook), you can have a semi-linear history, at least per branch. Then you can use e.g. git describe output, or count the number of commits since a particular starting point in the branch. -Dimitry --Apple-Mail=_BC548FFB-8FB8-4578-9BFF-AEA029128AC7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXy1VlgAKCRCwXqMKLiCW o5yBAKCWl9431/cb/SpS75nFEDv3kh2ALwCgxI8mphCrY/3jut9GBRJcwZsHf0Y= =Xk4g -----END PGP SIGNATURE----- --Apple-Mail=_BC548FFB-8FB8-4578-9BFF-AEA029128AC7-- From owner-freebsd-git@freebsd.org Fri Aug 7 13:28:13 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 000E43BACA1 for ; Fri, 7 Aug 2020 13:28:12 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mouf.net", Issuer "mouf.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BNR4r6Cfpz4QqJ for ; Fri, 7 Aug 2020 13:28:12 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from lrrr.mouf.net (cpe-76-182-16-135.nc.res.rr.com [76.182.16.135]) (authenticated bits=0) by mouf.net (8.14.9/8.14.9) with ESMTP id 077DRxNB051227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 7 Aug 2020 13:28:07 GMT (envelope-from swills@FreeBSD.org) Subject: Re: SVN Revision-Like IDs in Git To: "Sideropoulos, Alexander" , "freebsd-git@freebsd.org" Cc: "Maxwell, Larus" References: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> From: Steve Wills Message-ID: <1c82b615-6685-ec20-c6da-6e76035b3ef4@FreeBSD.org> Date: Fri, 7 Aug 2020 09:27:56 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Fri, 07 Aug 2020 13:28:08 +0000 (UTC) X-Spam-Status: No, score=-0.7 required=4.5 tests=KHOP_HELO_FCRDNS, NICE_REPLY_A, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mouf.net X-Virus-Scanned: clamav-milter 0.99.2 at mouf.net X-Virus-Status: Clean X-Rspamd-Queue-Id: 4BNR4r6Cfpz4QqJ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:36236, ipnet:2607:fc50::/36, country:US]; local_wl_from(0.00)[FreeBSD.org] X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 13:28:13 -0000 Hi, On 8/6/20 6:01 PM, Sideropoulos, Alexander wrote: > Hey folks, > > According to this page... > https://hackmd.io/_lvyl1CfTsayB3L0v4fmLA#What%E2%80%99s-with-the-funny-revision-hashes-I-want-revision-numbers > > ...there are no plans to provide an SVN-revision-like ID for Git commits once the switch-over happens. > > At NetApp, we rely on the SVN revision number to uniquely identify our FreeBSD baseline and every cherry-picked patch we apply on top of it. We could update all our tooling to accept Git hashes, but this is not a small task. And I imagine we are not the only downstream project reliant upon SVN revision numbers. > > Since the SVN revision ID is really just an arbitrary number, has there been any thought in simply continuing to manufacture these numbers for Git commits going forward? It could even be a post-commit operation where the Git notes are updated with a unique (increasing) ID, just as is done today. > > Thoughts? I believe there will be git to svn replication for a while, so you could possibly continue to use svn until the tooling is updated. Steve From owner-freebsd-git@freebsd.org Fri Aug 7 20:13:35 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B56B6373924 for ; Fri, 7 Aug 2020 20:13:35 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BNc4Z5lJ2z3cyk for ; Fri, 7 Aug 2020 20:13:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82b.google.com with SMTP id 6so2265173qtt.0 for ; Fri, 07 Aug 2020 13:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gtncQD/nGLuLJrT9RRfZith3dmXyZJaKRoh4xw82xMw=; b=1xncoYh9tjDokWyOtNqXsdc9gxfofLeHqs91E3GI6Uv8ZMstn6ntJ7Y2Kq3PEMcNNX crEmeUBo3ei1DxFclmCMu6alp4pHixkkfziKlWfpNRpFBIt5RmdKUE3+q5WwLMf+OTnS 4v2MyD0MlsB+jUm+igttpHfsVb0OG1p65r5gvTqOxSdlbllxaPWEc35VQ9DD9qfkbm0E sevGu0ypilwCHrpEGU8DAek9tG4Zkjl5E18E4StmBPtsuIl8F0mU0R5AA1eJbaL1jeIn oJiwFTmuXscsWya+Rbw+ujDr+XIti/YR5MBEBk5pCtsN4NZZfC40PAFOPhtSa2kuKZ99 E9Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gtncQD/nGLuLJrT9RRfZith3dmXyZJaKRoh4xw82xMw=; b=g3KGIFvY5YzCkbIrQGEEpNYZRpyLvggxIVdz3mrOcq+cozbDBB1OLCqPN316r2vYTM PFwsSbra6vbPObGjYNvTE2AVgQNyps0wvpmUa6Qky0gL1cczMgQsHoI9RrUEchqxI8hb B3LigEgs4uoJ0PYfttJZUnRmUvwk4VKD9INoTeJbY6tvnybvIATU+qRz2G2IJ2Q2pGaj oivBbguBqIJYbFe2KMMSgSPFoRJ9bY8MQ8ZCCUj0aXP58F8pRmqBCdfcazZp5ngBNHC8 bNQPRRnbsgyliUoOyU13Jmf9AMpb8JQnjS2dC72lqSygziIh+YoNp96DVyjobvL68Zng 9FGQ== X-Gm-Message-State: AOAM53049NobgaqHCZ2XiMdIYZ8f9NSM1LpYJZ7clWF6bgJBqH2mE7y0 rGpgO5AJsCrCUVUo3HLJ6UHl1CfU0KCIVfLhVA/Lfooo X-Google-Smtp-Source: ABdhPJyYjvYmoJfM8ZcAuKKO+Vx88A/ERZ5/Ct7xjkQTsB0OTyge9FShuxjruv8Ugkrdc8Vq4e3KXb25PZ/1k+ycOUs= X-Received: by 2002:ac8:4719:: with SMTP id f25mr16169553qtp.291.1596831213304; Fri, 07 Aug 2020 13:13:33 -0700 (PDT) MIME-Version: 1.0 References: <013F16E7-DDBB-4C2F-829D-D08B53CC7585@netapp.com> <1c82b615-6685-ec20-c6da-6e76035b3ef4@FreeBSD.org> In-Reply-To: <1c82b615-6685-ec20-c6da-6e76035b3ef4@FreeBSD.org> From: Warner Losh Date: Fri, 7 Aug 2020 14:13:22 -0600 Message-ID: Subject: Re: SVN Revision-Like IDs in Git To: Steve Wills Cc: "Sideropoulos, Alexander" , "freebsd-git@freebsd.org" , "Maxwell, Larus" X-Rspamd-Queue-Id: 4BNc4Z5lJ2z3cyk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=1xncoYh9; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82b) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.32 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.89)[-0.888]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.977]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.45)[-0.450]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82b:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 20:13:35 -0000 On Fri, Aug 7, 2020 at 7:28 AM Steve Wills wrote: > Hi, > > On 8/6/20 6:01 PM, Sideropoulos, Alexander wrote: > > Hey folks, > > > > According to this page... > > > https://hackmd.io/_lvyl1CfTsayB3L0v4fmLA#What%E2%80%99s-with-the-funny-revision-hashes-I-want-revision-numbers > > > > ...there are no plans to provide an SVN-revision-like ID for Git commits > once the switch-over happens. > > > > At NetApp, we rely on the SVN revision number to uniquely identify our > FreeBSD baseline and every cherry-picked patch we apply on top of it. We > could update all our tooling to accept Git hashes, but this is not a small > task. And I imagine we are not the only downstream project reliant upon SVN > revision numbers. > > > > Since the SVN revision ID is really just an arbitrary number, has there > been any thought in simply continuing to manufacture these numbers for Git > commits going forward? It could even be a post-commit operation where the > Git notes are updated with a unique (increasing) ID, just as is done today. > > > > Thoughts? > > I believe there will be git to svn replication for a while, so you could > possibly continue to use svn until the tooling is updated. > Be advised that this svn view may have a different set of r values than the current repo. Still working out those kinks.... Warner