Patchwork [6,of,8] py3: use pycompat.bytestr instead of str

login
register
mail settings
Submitter Pulkit Goyal
Date June 26, 2017, 7:55 p.m.
Message ID <576285090908583dac2a.1498506927@workspace>
Download mbox | patch
Permalink /patch/21747/
State Accepted
Headers show

Comments

Pulkit Goyal - June 26, 2017, 7:55 p.m.
# 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

Patch

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),