Submitter | Yuya Nishihara |
---|---|
Date | April 1, 2018, 2:46 a.m. |
Message ID | <c8be87f32f1cdf473685.1522550760@mimosa> |
Download | mbox | patch |
Permalink | /patch/30090/ |
State | Deferred |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@mercurial-scm.org Delivered-To: patchwork@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 8F10C2C1E7; Sat, 31 Mar 2018 22:46:37 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PaWQfIRraA5r; Sat, 31 Mar 2018 22:46:37 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 81C622C242; Sat, 31 Mar 2018 22:46:35 -0400 (EDT) X-Original-To: mercurial-devel@mercurial-scm.org Delivered-To: mercurial-devel@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id D3EA12C1E7 for <mercurial-devel@mercurial-scm.org>; Sat, 31 Mar 2018 22:46:34 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2P8YvskHXT78 for <mercurial-devel@mercurial-scm.org>; Sat, 31 Mar 2018 22:46:34 -0400 (EDT) Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) by mercurial-scm.org (Postfix) with ESMTPS id BCC692C29A for <mercurial-devel@mercurial-scm.org>; Sat, 31 Mar 2018 22:46:30 -0400 (EDT) Received: by mail-pf0-x234.google.com with SMTP id l27so7685346pfk.12 for <mercurial-devel@mercurial-scm.org>; Sat, 31 Mar 2018 19:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=n9m7yzjXTLESN0+yYYz3xWLr50mXsPALy8vy5XEO7uE=; b=iupFPBbqzHAgJKwBsB0/bpeRfX0wsW7cCwq6VP3pHsQzlPIFXlXIyEy0dT0nal7p3/ 0EJXzXhRVeIYeTRoTEHOtc7nO5lT/BuVhqyrB6yJ9yZpWDvhXex/G876nZ9Mx+lmGm8P 2yzBy+OcPAT5+hFPMqeHKtSMTwTo3KEQIKgthAQBkEZeP0jD8FcXtkgoHHYFPLhymJQu cFeJwZejLl0osHlo0hq0XBG5lIr1y3iiQpw7vdYZ7KwDeoVfXDu7rGtMxF/zTCdmpNpL LNdG68v9gdHUbeLnwDML2WdlaraFD5Nk7L17yq0xIRfbsSJMeqs+OOS7gIyYpjjPzUu4 a9lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=n9m7yzjXTLESN0+yYYz3xWLr50mXsPALy8vy5XEO7uE=; b=CAjhv1jurmHluKUuoYMXKZJUO2F1MP3tDvaFaa9/+QTyPD8qA2nPZWnE+1QC5JReqb CYblQmH2iaMMPGi4ryJAeMQ1s8CImcKrQQqkfD86UZfqXixCj3dwRfuth9sv9Z3nGr1Q cPAKCV9MKqbYynfFqSTppDG8xyTUrmgYWmZb/MixAvRJiKCoGgmA7PzNk63QOaT9oDok Zlzn0YCpoAyfDqnqdqydw4ufjx5R6e+K4t5agVDEaeFqQIX7xNb/Dqv8dr8ZS1HNf9Ro t8RqI8FgqtH7cLhTYvY7YLqTqWdcND+31nngHXf3ssivvsqxBeeezxD7r9UuJu8Q0bTI PMDw== X-Gm-Message-State: AElRT7H1SwM3mwUlQ1vMuoHKs42h0CIQHHRDJakBwML0zv4zGmGO+YeZ aVNg2zQxfLXFrxsv7//4MUgcc5FT X-Google-Smtp-Source: AIpwx49RGDVvBXT08khyWa3e0V/zZgXkKTWikqm/xxz2mFbElC68VsHSAz0Zi5StUHy5reqq4UUvpw== X-Received: by 10.101.65.195 with SMTP id b3mr3098035pgq.118.1522550790026; Sat, 31 Mar 2018 19:46:30 -0700 (PDT) Received: from [127.0.1.1] (p6e42c1b8.tkyea126.ap.so-net.ne.jp. [110.66.193.184]) by smtp.gmail.com with ESMTPSA id t17sm20263685pgv.36.2018.03.31.19.46.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Mar 2018 19:46:29 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 3 of 8] templatekw: do not directly call .gen X-Mercurial-Node: c8be87f32f1cdf473685b8302300265d57f3b512 X-Mercurial-Series-Index: 3 X-Mercurial-Series-Total: 8 Message-Id: <c8be87f32f1cdf473685.1522550760@mimosa> X-Mercurial-Series-Id: <529838f7858556c0f9d1.1522550758@mimosa> In-Reply-To: <529838f7858556c0f9d1.1522550758@mimosa> References: <529838f7858556c0f9d1.1522550758@mimosa> User-Agent: Mercurial-patchbomb/4.5.2+1305-fb7140f1d09d Date: Sun, 01 Apr 2018 11:46:00 +0900 From: Yuya Nishihara <yuya@tcha.org> To: mercurial-devel@mercurial-scm.org X-BeenThere: mercurial-devel@mercurial-scm.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.mercurial-scm.org> List-Unsubscribe: <https://www.mercurial-scm.org/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=unsubscribe> List-Archive: <http://www.mercurial-scm.org/pipermail/mercurial-devel/> List-Post: <mailto:mercurial-devel@mercurial-scm.org> List-Help: <mailto:mercurial-devel-request@mercurial-scm.org?subject=help> List-Subscribe: <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@mercurial-scm.org Sender: "Mercurial-devel" <mercurial-devel-bounces@mercurial-scm.org> |
Comments
Yuya Nishihara - April 1, 2018, 2:46 a.m.
Patch
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -613,10 +613,7 @@ def showsuccessorssets(context, mapping) # Format the successorssets def render(d): - t = [] - for i in d.gen(): - t.append(i) - return "".join(t) + return templateutil.stringify(context, d.show(context)) def gen(data): yield "; ".join(render(d) for d in data)