From patchwork Mon Jun 26 19:55:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,8] py3: use pycompat.bytestr instead of str From: Pulkit Goyal <7895pulkit@gmail.com> X-Patchwork-Id: 21747 Message-Id: <576285090908583dac2a.1498506927@workspace> To: mercurial-devel@mercurial-scm.org Date: Tue, 27 Jun 2017 01:25:27 +0530 # HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1498477990 -19800 # Mon Jun 26 17:23:10 2017 +0530 # Node ID 576285090908583dac2a55826f0614f532bd19b1 # Parent c53fdc12a8c20510da85b080c47dbe7355791730 py3: use pycompat.bytestr instead of str diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -324,7 +324,7 @@ return '%s ' % hex else: hexfn = rootfm.hexfunc - formatrev = formathex = str + formatrev = formathex = pycompat.bytestr opmap = [('user', ' ', lambda x: x[0].user(), ui.shortuser), ('number', ' ', lambda x: x[0].rev(), formatrev),