Submitter | Gregory Szorc |
---|---|
Date | May 28, 2016, 8:04 p.m. |
Message ID | <91e745e440f753fb6c04.1464465866@ubuntu-vm-main> |
Download | mbox | patch |
Permalink | /patch/15232/ |
State | Accepted |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@patchwork.serpentine.com Delivered-To: patchwork@patchwork.serpentine.com Received: from mercurial.selenic.com (mercurial-scm.org [192.81.134.36]) by bz.selenic.com (Postfix) with ESMTP id 8669F3BD25 for <patchwork@patchwork.serpentine.com>; Sat, 28 May 2016 16:05:12 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mercurial.selenic.com (Postfix) with ESMTP id 305D82C169; Sat, 28 May 2016 16:05:12 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial.selenic.com ([127.0.0.1]) by localhost (mercurial.selenic.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VIHEv3XMEs9Z; Sat, 28 May 2016 16:05:11 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial.selenic.com (Postfix) with ESMTP id 0C69C2C164; Sat, 28 May 2016 16:05:11 -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.selenic.com (Postfix) with ESMTP id E82E42C15F for <mercurial-devel@mercurial-scm.org>; Sat, 28 May 2016 16:05:08 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial.selenic.com ([127.0.0.1]) by localhost (mercurial.selenic.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ebv5Nhli-47y for <mercurial-devel@mercurial-scm.org>; Sat, 28 May 2016 16:05:08 -0400 (EDT) Received: from waste.org (waste.org [173.11.57.241]) by mercurial.selenic.com (Postfix) with ESMTP id 6E6452C159 for <mercurial-devel@mercurial-scm.org>; Sat, 28 May 2016 16:05:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 1C7DA740E7 for <mercurial-devel@mercurial-scm.org>; Sat, 28 May 2016 15:05:08 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at waste.org Received: from waste.org ([127.0.0.1]) by localhost (waste.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F4tmz50IUkzv for <mercurial-devel@mercurial-scm.org>; Sat, 28 May 2016 15:05:06 -0500 (CDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by waste.org (Postfix) with ESMTPS id 496B2740E8 for <mercurial-devel@selenic.com>; Sat, 28 May 2016 15:04:31 -0500 (CDT) Received: by mail-pa0-f48.google.com with SMTP id bz2so20244803pad.1 for <mercurial-devel@selenic.com>; Sat, 28 May 2016 13:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=ZkXnL+EaBCuVpZ196vwmkh94BbP4grX+l0l9dNwRHwU=; b=PBdLdHrjgMnR5UxH9W0vAzl07RpNLJMWoIlB12Oy7RhdOrgNoLZIDNs5+JNHlCRMMQ CEEQU66ZABxImMt3SQYKhsfjYvkLXk9bpe6JioBJsMSWkGKCPkHrhCWiwBWOcMieVJCo xox4PuO3vRlyOa3TEqRLM8J2FUxjYXM2DlQ3WZwiTE3xe17v3Pws6ZU90jmnpnkDkScB BELTs4b2fMWfj9r9o5SH1Rw1DEwh0Lbat3u4dA4eIheZ+BzEnIJFhtf7iBHZKdE55CnA KgMMJECKGaGGJD1ibGr2SbB8sR5CRULx29VeJk3LyZNQvQLN27J6njK1MArrFqSqrpC5 haCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:user-agent:date:from:to; bh=ZkXnL+EaBCuVpZ196vwmkh94BbP4grX+l0l9dNwRHwU=; b=Z9EURV79f7lUxqbTIGU9D9CA/x65Hh/2rF5uPxP1bNYx6rKRbTSYzg+SjQWx0fOvBd Ao4eyHRRgrKBf+Ul1JOCVyDnEAqMlJ2ALmLs4MAbb0dCaxXPu+yV30p06JqvowrhvYxs TsWN8DrW4L5sp+FdvG1bzcmw0mZCC+AggDMjsQADlAhda6gx0QCblhncLN0tMlQUJMlG LnlTqv8z2gy/qzAMMJBSySKGbfb1x4qZtiYPqtuP9Z4nSymStqJwKe3UHL/ZUv6J+b6r o69bM6gNc9PoqOspcVmJR8Rm6Q2kXm8LijM5QYK4nCYXSPvgPwe2ceL5tkCjiKLzvmey 7KBA== X-Gm-Message-State: ALyK8tKWINXi/mtMWW9VcAUZNMO4YyeOuStHszsRabY97SM7Y/rOvrbk7DjSweZ7tM2n/w== X-Received: by 10.66.178.139 with SMTP id cy11mr32959690pac.157.1464465870550; Sat, 28 May 2016 13:04:30 -0700 (PDT) Received: from [127.0.1.1] (c-76-102-241-255.hsd1.ca.comcast.net. [76.102.241.255]) by smtp.gmail.com with ESMTPSA id c15sm16593295pfj.65.2016.05.28.13.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 May 2016 13:04:30 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 4 of 8] util: add sha256 X-Mercurial-Node: 91e745e440f753fb6c04516dfb507cf9aba585fb X-Mercurial-Series-Index: 4 X-Mercurial-Series-Total: 8 Message-Id: <91e745e440f753fb6c04.1464465866@ubuntu-vm-main> X-Mercurial-Series-Id: <281a76456d7e198949e9.1464465863@ubuntu-vm-main> In-Reply-To: <281a76456d7e198949e9.1464465863@ubuntu-vm-main> References: <281a76456d7e198949e9.1464465863@ubuntu-vm-main> User-Agent: Mercurial-patchbomb/3.8.2+188-9da137faaa9c Date: Sat, 28 May 2016 13:04:26 -0700 From: Gregory Szorc <gregory.szorc@gmail.com> 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
Gregory Szorc - May 28, 2016, 8:04 p.m.
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -60,16 +60,17 @@ urlreq = pycompat.urlreq if os.name == 'nt': from . import windows as platform else: from . import posix as platform md5 = hashlib.md5 sha1 = hashlib.sha1 +sha256 = hashlib.sha256 sha512 = hashlib.sha512 _ = i18n._ cachestat = platform.cachestat checkexec = platform.checkexec checklink = platform.checklink copymode = platform.copymode executablepath = platform.executablepath