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

Pulkit Goyal 7895pulkit at gmail.com
Mon Jun 26 15:55:27 EDT 2017


# HG changeset patch
# User Pulkit Goyal <7895pulkit at 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),


More information about the Mercurial-devel mailing list