From patchwork Tue Oct 17 19:08:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 827251 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yGl8R3MT7z9t30; Wed, 18 Oct 2017 06:08:23 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e4XDv-0006gw-HL; Tue, 17 Oct 2017 19:08:19 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1e4XDt-0006fn-VN for kernel-team@lists.ubuntu.com; Tue, 17 Oct 2017 19:08:17 +0000 Received: from mail-qt0-f199.google.com ([209.85.216.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1e4XDt-0008Iv-Le for kernel-team@lists.ubuntu.com; Tue, 17 Oct 2017 19:08:17 +0000 Received: by mail-qt0-f199.google.com with SMTP id h9so3402629qtc.2 for ; Tue, 17 Oct 2017 12:08:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=y4jYl4y7XVoINzsIcLlECE4CIvbUU9GME99mvbvS4aE=; b=G3cd/KxuN0VGYAZChOKB1u5lNOWBd9jhkwRhPdthYayDo2w8fARbsZf+XBRp3wlcFX GZQWGProa9W2HJyjnqDtm7eqWOy6Hck5Q40omo/9DsGdArBchgJnC+KnjP+9JMjcpnQN E6E/U/bKARjRWPUb1T+RTAYUcidqcJRGcYDW6weqsrCzNsxgfYFYqEnq54u9nZC6QbiL jCrNGWkfTfZS9qee7l2GA/5EoM2LQ8BpQ5aqkSuyRUVpyr3emp9u5fFG3YENDgi9OUK3 /bT/ED8w+gOu471VvAMMxEmyEDmSswekvXDPfi74ia4n2NvXWflac+nJJjYXTZkhFUZp SHRw== X-Gm-Message-State: AMCzsaWEVQ0GxIUv3hGzpZgf4TcWWt+Po1Lo99aaswf0nDq6cMv3L0G6 xE1I5iIUwIxjNKWaDzACSTt+1PebHSxZi72t6L1GcOqcKrdA3iQNL1wSajyZE6T0I4U8j7KE2ff T7E1xiaPn3Yn233XYaPl2xs6fHbIzVkpszdJ2US4Z X-Received: by 10.55.99.148 with SMTP id x142mr19376823qkb.212.1508267296609; Tue, 17 Oct 2017 12:08:16 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TO00tr+fHLfHNh7Vc7LmLuyYyQu0C6zwvFWxQsWjPSnJ5Ndq9G8kh2Cz76UvJ8vgZjKieoxg== X-Received: by 10.55.99.148 with SMTP id x142mr19376800qkb.212.1508267296392; Tue, 17 Oct 2017 12:08:16 -0700 (PDT) Received: from localhost.localdomain (189-19-122-247.dsl.telesp.net.br. [189.19.122.247]) by smtp.gmail.com with ESMTPSA id m65sm6432326qkl.87.2017.10.17.12.08.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Oct 2017 12:08:15 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH] ktl: force default format for Git.log() Date: Tue, 17 Oct 2017 17:08:09 -0200 Message-Id: <1508267289-7230-1-git-send-email-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Force default git log format, so Git.log() return will be consistent even if format.pretty is defined with a different value in .gitconfig. Signed-off-by: Marcelo Henrique Cerri Acked-by: Kleber Sacilotto de Souza --- ktl/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ktl/git.py b/ktl/git.py index 5c4e270e72fa..67444e5ddb02 100644 --- a/ktl/git.py +++ b/ktl/git.py @@ -204,9 +204,9 @@ class Git: cls.log_results['commits'] = [] cls.log_results['buglink-index'] = {} if num != -1: - status, result = run_command("git log -%d" % (num), cls.debug) + status, result = run_command("git log --pretty=medium -%d" % (num), cls.debug) else: - status, result = run_command("git log", cls.debug) + status, result = run_command("git log --pretty=medium", cls.debug) commit = {} commit_text = [] current_sha1 = 'unknown'