Submitter | Pulkit Goyal |
---|---|
Date | June 26, 2017, 7:55 p.m. |
Message ID | <e53b2097c1368e99088d.1498506928@workspace> |
Download | mbox | patch |
Permalink | /patch/21748/ |
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 5200D2C251; Mon, 26 Jun 2017 15:56:13 -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 lbMWyhBSam-H; Mon, 26 Jun 2017 15:56:13 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 637032C28B; Mon, 26 Jun 2017 15:56:12 -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 ADF352C241 for <mercurial-devel@mercurial-scm.org>; Mon, 26 Jun 2017 15:56: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 VBQ-38eTJzKN for <mercurial-devel@mercurial-scm.org>; Mon, 26 Jun 2017 15:56:08 -0400 (EDT) Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) by mercurial-scm.org (Postfix) with ESMTPS id 16D622C283 for <mercurial-devel@mercurial-scm.org>; Mon, 26 Jun 2017 15:56:06 -0400 (EDT) Received: by mail-pg0-x244.google.com with SMTP id u62so1420244pgb.0 for <mercurial-devel@mercurial-scm.org>; Mon, 26 Jun 2017 12:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=8qwyEV93Pr/REQYQIvVjsyXVolcLTj+3vrZ0sbrRzIw=; b=aFNs4c8KCYn8k/fkxu3gklnDGYPatI8KI9jVx83dbKF7vLzMR35JmNdf8XG3MQcPzs 6hjj0CKdk9uMUlsgSXEAaSCMJEpoZjB3ERB6ndR5SSdAdFQdczNpmQNJM6FAxfwFnzx8 AnJW8LybS8P7UQb/NKr2u7p+mqku+dRKqa5qWWtVWlkItafKTLrt7w7tL8adxiWh/LJ/ xF2YjOoVemFZLltFErmWOkE8cgpDGnuimJFTgC/9wq3U7GZkQLGgNxuOureBfUqafhcG a9AbFKj2X7Jcu/5H/IY92m7adZ/Gvqdgc2Iz+IVNmqZ28xwrTS7r8FBIcnV1jGIpXZNg 4hKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:user-agent:date:from:to; bh=8qwyEV93Pr/REQYQIvVjsyXVolcLTj+3vrZ0sbrRzIw=; b=XVaIgiYPUBz9WunHUhtZBLyGXrRoXBO37OuLOOfaByjCk4JOw+32cHpJ1c3WqURkk6 nBv8swO4CVcCCg29KMaxCDsO7ofp7gGHiK8GumAMlee5td2JUfph792PBPLT/V7g3Koi et8+DWhWLFHubvbZZK0+WTuFU1LV+waId78zfNeWZEhGdYRL5D6DCohkqJO3RuQ3bP6l z0RGyK8J3XORRLmfb6BHA6/l9OaZlWgVMbJomXz+YSAQIhTsjzkK4oNA/VkveO/w7qgf o3fwCjxLGxcujmJRk3LjUsMbKE8IP5DmtN7toyF6tBErvFA1QeAMce9d8nbZdQOb1rJW OLRw== X-Gm-Message-State: AKS2vOzicUKJwfvNgWuHnqxlGLsYjpDyk/Jbzmw+wAJGI8cEQ8zpB2Vu q0Z0vLnEYtVWP+E0jSk= X-Received: by 10.84.177.67 with SMTP id w61mr1816447plb.57.1498506966132; Mon, 26 Jun 2017 12:56:06 -0700 (PDT) Received: from [127.0.1.1] ([223.225.247.122]) by smtp.gmail.com with ESMTPSA id w26sm1577913pfa.25.2017.06.26.12.56.04 for <mercurial-devel@mercurial-scm.org> (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jun 2017 12:56:05 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 7 of 8] py3: pass the memoryview object into bytes() to get the value X-Mercurial-Node: e53b2097c1368e99088dc573225dd02b05dc5b0f X-Mercurial-Series-Index: 7 X-Mercurial-Series-Total: 8 Message-Id: <e53b2097c1368e99088d.1498506928@workspace> X-Mercurial-Series-Id: <9fa49669fdd13c7e15ae.1498506922@workspace> In-Reply-To: <9fa49669fdd13c7e15ae.1498506922@workspace> References: <9fa49669fdd13c7e15ae.1498506922@workspace> User-Agent: Mercurial-patchbomb/4.2+335-34e9b8b94f66 Date: Tue, 27 Jun 2017 01:25:28 +0530 From: Pulkit Goyal <7895pulkit@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
Pulkit Goyal - June 26, 2017, 7:55 p.m.
Patch
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1818,7 +1818,7 @@ # Obtain data on the raw chunks in the revlog. segment = r._getsegmentforrevs(rev, rev)[1] if segment: - chunktype = segment[0] + chunktype = bytes(segment[0:1]) else: chunktype = 'empty'