Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp188966lqq; Wed, 12 Jun 2024 23:07:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVf+nWMITupMjvOo/UzCPvTu4capZ7+9AW1kxGskNICDrr1cPAmz446IloTt1mlMK2AhprifN0Qjql7pcpMfWEQ5XWihcm7Ao+iqQJGQ== X-Google-Smtp-Source: AGHT+IHaWzDBYQ3nT37/pIgxPRSTAWk5CCwKa77awkaamQk2dYBtXewASBRtkVKbmrnkgz1smRJz X-Received: by 2002:a05:6870:c153:b0:254:b455:2bf6 with SMTP id 586e51a60fabf-25514ea82ecmr4414211fac.53.1718258861875; Wed, 12 Jun 2024 23:07:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718258861; cv=pass; d=google.com; s=arc-20160816; b=H7EaRHHfL9zOGzT9wHtJd9ZfGapH0AlN4ymWd9j8mzZ/NGB3WPsgIGQOD2bDuM7RoC oT7ZE43FIUu0JKeSoyeSQpHERNn1nyxDc+fw7w2LhJpKDC+epUZmNdwowhfCvngh8HZr 5pNHfqYPZPfkq3YwPUOaUMY+mkyFKhs99xR/YnQ95+6cyrW4lirWOTEKkDIDxiy7ao66 8otazTNBlR1/rtRYaHL7DHKTJmLZZp5D1AGA+eC/41H2EwyoIv8h9ptMPL3ls9awzF87 3hIy2V3oZlGvRvWJdfuHNqv7aKvQma1V56jv/EEF0pkUyMQRXJK2WlzhSL2HNsCGjRuk cqnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=k3cSkOD+ncfwCtVt/8yGXX4utyOSNBIamgWZdd7DD2Q=; fh=kFMpy/OBclFP5WSzNSdwK4Eh5wKnp3POZXNk0IgWe4E=; b=NhQXypC/JeOhhRtZ1roIL2tnGURWwji1VKj/4yAe754VDBho6LxRLWqE/XdPWTAjxm Blu45SmwsKQclHsqo7Vv6h127O6c2TPnpn/aaJRW+0cx+iN6jz2YtB1ovcNk8uySuRr+ 476UQ/bx6Ci2eMH5TOKVffM27ugBjH5rwOVqqyKdCZ1eqsFtb4SaZHgloAcjmlADfREe NSPWCZp3VGgUQCGkBSggPCE98WjmBu8lge9+El2Ly0FtpYuMqI+6tYAtQo2uYewB3roS SQMSzAekqKLCc4C593h4TjG4jJ/JcPBMiVcMZWsarqhscpYW9K0kTDHPQi/dzd8htqoa ynwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hust.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-212591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212591-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705cc904306si734458b3a.2.2024.06.12.23.07.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hust.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-212591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212591-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76C5C284E7A for ; Thu, 13 Jun 2024 06:07:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97D4F136E2B; Thu, 13 Jun 2024 06:06:51 +0000 (UTC) Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24F75136E2A; Thu, 13 Jun 2024 06:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.97.181.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718258811; cv=none; b=SZJjVOQqtphWlCqee2yfuX8+LpwWhyDiS3DWRf5oozUgvWamjjkTw4fpCvwgRa+ICsjkbtubU+ugcNlgXRKaAVkSnSIHkjlszNT5QYnKTjVI6CClKTpqaFtnRo7hFabeM7MRcqn6PI172HqA+X8iDorMsz5uCZ00U1l9BRScxfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718258811; c=relaxed/simple; bh=tQuruoBPJkmyTST/kNkyaOSE113hO9dTS2VsCm0j+SM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RO/KJGwtrR+zbS78rgNC979Z6skQouEzzQFmaq08y5+D9DxH3w7EyZMKGflY9HMSR/SMRyRHVYjq45tsIBRVp/GfB7EqBqQbPpLm4EzATe0amdqU28M2zLSZYb/djvcPPdHzG5LloxPSnBrx34nwqkdkGP8fDVng5cdOn0LbUjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hust.edu.cn; spf=pass smtp.mailfrom=hust.edu.cn; arc=none smtp.client-ip=209.97.181.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hust.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hust.edu.cn Received: from hust.edu.cn (unknown [172.16.0.50]) by app2 (Coremail) with SMTP id HwEQrAAHX8dZjGpmPkNxAQ--.8099S2; Thu, 13 Jun 2024 14:06:17 +0800 (CST) Received: from [10.12.169.238] (unknown [10.12.169.238]) by gateway (Coremail) with SMTP id _____wDHokRWjGpm+X0eAA--.577S2; Thu, 13 Jun 2024 14:06:16 +0800 (CST) Message-ID: <43d7cf37-8f7f-4004-a5d1-15fcc9189016@hust.edu.cn> Date: Thu, 13 Jun 2024 14:06:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] scripts: add scripts/checktransupdate.py To: Jonathan Corbet , Alex Shi , Yanteng Si Cc: hust-os-kernel-patches@googlegroups.com, linux-doc@vger.kernel.org, Cheng Ziqiu , linux-kernel@vger.kernel.org References: <20240611131723.53515-1-dzm91@hust.edu.cn> <87plslonqu.fsf@trenco.lwn.net> From: Dongliang Mu In-Reply-To: <87plslonqu.fsf@trenco.lwn.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID:HwEQrAAHX8dZjGpmPkNxAQ--.8099S2 Authentication-Results: app2; spf=neutral smtp.mail=dzm91@hust.edu.cn; X-Coremail-Antispam: 1UD129KBjvJXoW7Gw4xXrW8GrW5JFyUuF1rZwb_yoW8JF15pa 4j9F1aywn8Kr1xCF4fKw1vqFWrJF1IyFWFqry2qr1rXrn8tr1xGF4avw45ur1UurW8Jw1Y yFyjkFZrK3W5CFJanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUQFb7Iv0xC_Cr1lb4IE77IF4wAFc2x0x2IEx4CE42xK8VAvwI8I cIk0rVWrJVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjx v20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK 6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1ln4kS14v26r 126r1DM2vYz4IE04k24VAvwVAKI4IrM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI 12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj64x0Y40En7xvr7AKxV W8Jr0_Cr1UMcIj6x8ErcxFaVAv8VW8uFyUJr1UMcIj6xkF7I0En7xvr7AKxVWxJVW8Jr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxkF7I0En4kS14v26r126r1DMxAIw2 8IcxkI7VAKI48JMxAIw28IcVCjz48v1sIEY20_GFW3Jr1UJwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j6FALUUUUU= X-CM-SenderInfo: asqsiiirqrkko6kx23oohg3hdfq/ On 2024/6/13 05:27, Jonathan Corbet wrote: > Dongliang Mu writes: > >> The checktransupdate.py script helps track the translation status of >> the documentation in different locales, e.g., zh_CN and verify if >> these documenation is up-to-date. More specially, it uses `git log` >> commit to find the latest english commit from the translation commit >> (order by author date) and the latest english commits from HEAD. If >> differences occur, report the file and commits that need to be updated. >> >> Signed-off-by: Dongliang Mu >> Signed-off-by: Cheng Ziqiu >> --- >> v1->v2: revise the output format of git commits >> add some description and usage of this script >> scripts/checktransupdate.py | 203 ++++++++++++++++++++++++++++++++++++ >> 1 file changed, 203 insertions(+) >> create mode 100755 scripts/checktransupdate.py > I have applied this, it seems like a useful tool. Thanks, jon. > I do wish the code looked like something a bit closer to the kernel > coding style, but so it goes. Linux kernel does have coding style for C language. Any reference to python coding style? I can refer to these materials to revise this script. Dongliang Mu > > Thanks, > > jon