Submitter | Yuya Nishihara |
---|---|
Date | March 13, 2017, 6:59 p.m. |
Message ID | <b7717d4dc60bcc3a3f4b.1489431542@mimosa> |
Download | mbox | patch |
Permalink | /patch/19289/ |
State | Accepted |
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 6AE532C175; Mon, 13 Mar 2017 14:59:08 -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 glYvOkXv7NL5; Mon, 13 Mar 2017 14:59:08 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id AD8EE2C198; Mon, 13 Mar 2017 14:59:07 -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 AF07A2C175 for <mercurial-devel@mercurial-scm.org>; Mon, 13 Mar 2017 14:59:06 -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 G8009CJGNdCw for <mercurial-devel@mercurial-scm.org>; Mon, 13 Mar 2017 14:59:06 -0400 (EDT) Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com [IPv6:2607:f8b0:400e:c05::231]) by mercurial-scm.org (Postfix) with ESMTPS id 4DF702C173 for <mercurial-devel@mercurial-scm.org>; Mon, 13 Mar 2017 14:59:05 -0400 (EDT) Received: by mail-pg0-x231.google.com with SMTP id g2so50287399pge.3 for <mercurial-devel@mercurial-scm.org>; Mon, 13 Mar 2017 11:59:05 -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 :user-agent:date:from:to; bh=Q290DDTI6evCcQRDo9uuUH35ih2rEJmj4MBH7NerQPQ=; b=AiEbdh38yW2UeI8G6aE3v/vYUAj3ryWtw5xAEZ38Yb+upLguPhqf9WMJPPGgvwkiZH EQuKSd8LcogXejEInEfuvO/Bh3bl5UEcgnSoPVa5FUt5DCCtvjE0QskScvxMvy2oflkI VXLju83HpS6ZhLphvY8MIOXvQvD5lzM9d+rDWW6qd7ctzGtCJIX5FQQysUNEG7h0ROHf 4EsVHhfgwFXZu0WqOfTgzv2C+jf1UdKhjB3Iia+RiseOzZkHGE0n4V4GxeHhAo0PNdSc CqYYGFDlyG4jWSox1G9Ctz5m/pRg8oZiv5u+x1nnR4Wf9Cdhrlp1zKcyf8tZOPau5RQP fvVw== 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:user-agent:date:from:to; bh=Q290DDTI6evCcQRDo9uuUH35ih2rEJmj4MBH7NerQPQ=; b=M34An7wHQyS7SzUc3fteC8/KIBgzoI08z2jFwHnDj9EErLvE5DR9UCpdBHZfZ039kX DvLBNuKan4Zf+gcD72ntyaO0qjy/OAOEno0R0bT7H+/oDVSg1sm1xRxKNTkaXzsFG1/T M/ngUgLdX+N+HS5au1LMZ3hCTj7EvdHUk5KDcmdHqPX/rQm4ny66eK5yV+7KBXHNJAhf P75Mg+AqzVpv7o0s1GhlhEuwB3bjKb8LjOIeZuI86/jdyHyt9V3UWBa6z0aUkOpzKUZP 9ABroaI1X6UIKH09IxZmtVQy4ELw1pMf1N03uK6n3tP4gl/Z6NwZLKUybjsCGRooaLBY /1qQ== X-Gm-Message-State: AMke39lXMrRq8nSDKbws5UtVL/aAMiyask6UNwhcN0Bqk8vBTFyhK4lN1XU3nsPkyX6T1w== X-Received: by 10.84.236.70 with SMTP id h6mr50217457pln.173.1489431545531; Mon, 13 Mar 2017 11:59:05 -0700 (PDT) Received: from [127.0.1.1] ([156.39.10.46]) by smtp.gmail.com with ESMTPSA id e63sm34111142pfg.40.2017.03.13.11.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Mar 2017 11:59:04 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 7] py3: use portable way to stringify cache key of repoview X-Mercurial-Node: b7717d4dc60bcc3a3f4b7b85476954357f52783b X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 7 Message-Id: <b7717d4dc60bcc3a3f4b.1489431542@mimosa> X-Mercurial-Series-Id: <b7717d4dc60bcc3a3f4b.1489431542@mimosa> User-Agent: Mercurial-patchbomb/4.1.1+475-37acdf027ae2 Date: Mon, 13 Mar 2017 11:59:02 -0700 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 - March 13, 2017, 6:59 p.m.
Patch
diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -104,7 +104,7 @@ def cachehash(repo, hideable): """ h = hashlib.sha1() h.update(''.join(repo.heads())) - h.update(str(hash(frozenset(hideable)))) + h.update('%d' % hash(frozenset(hideable))) return h.digest() def _writehiddencache(cachefile, cachehash, hidden):