From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10EF3A04DD for ; Mon, 20 Jan 2020 16:31:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7CF21B952; Mon, 20 Jan 2020 16:31:56 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id DEAAF14583 for ; Mon, 20 Jan 2020 16:31:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579534315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SE9AFOaDlx3tJQ+Dfz0Nlm0cg6/cdHZD0xkyYx2425k=; b=SOviYSbcvnjyDGc4At7KW5KENBKslPmr7N+JR1w6UYM1iS76UP02c3EnZ4ZjpnhNSRNE+y jEusNAb+q+b4nUsBJew3ZqX/dhDybdK6iI5TldRLx9I1UdpSB551B8j31KogzzFj+9uYpC O2vVH/SIqHq+UeaOKXBEvCRO6FoGqxU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-264-y8bdzRljOE-ds6ZYSauGPw-1; Mon, 20 Jan 2020 10:31:52 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DFE2C107ACC4; Mon, 20 Jan 2020 15:31:50 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-205-64.brq.redhat.com [10.40.205.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id A1EF77DB5D; Mon, 20 Jan 2020 15:31:48 +0000 (UTC) From: David Marchand To: ci@dpdk.org Cc: thomas@monjalon.net, alialnu@mellanox.com Date: Mon, 20 Jan 2020 16:31:38 +0100 Message-Id: <20200120153138.24817-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: y8bdzRljOE-ds6ZYSauGPw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-ci] [PATCH] Revert "tools: fix tree detection for orphan files" X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" The problem with this patch is that some files were with no git tree in MAINTAINERS on purpose: some files are maintained in the main repository, but we leave subtrees touch them like release notes or makefile/meson files. So reverting it, and adding a comment to document the reason. Signed-off-by: David Marchand --- tools/guess_git_tree.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/guess_git_tree.py b/tools/guess_git_tree.py index bc63674..c9eef39 100755 --- a/tools/guess_git_tree.py +++ b/tools/guess_git_tree.py @@ -146,11 +146,10 @@ class Maintainers(object): tree_list =3D [] for _file in files: _tree =3D self._get_tree(_file) - # No identified tree for a file means that it should go throug= h - # the main repository. - if not _tree: - _tree =3D 'dpdk' - tree_list.append(_tree) + # Having no tree means that we accept those changes going thro= ugh a + # subtree (e.g. release notes). + if _tree: + tree_list.append(_tree) tree =3D self.get_common_denominator(tree_list) if tree =3D=3D '': tree =3D 'dpdk' --=20 2.23.0