changeset 32754:723de0ad3d8b

py3: use pycompat.bytestr() instead of str()
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 08 Jun 2017 00:51:46 +0530
parents 264b86cf2092
children 3a57bfd369d4
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jun 02 16:57:21 2017 +0530
+++ b/mercurial/commands.py	Thu Jun 08 00:51:46 2017 +0530
@@ -2880,12 +2880,13 @@
                   ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
             if num:
                 output.append("%s%s" %
-                  ('+'.join([str(p.rev()) for p in parents]), changed))
+                  ('+'.join([pycompat.bytestr(p.rev()) for p in parents]),
+                                                                    changed))
         else:
             if default or id:
                 output = [hexfunc(ctx.node())]
             if num:
-                output.append(str(ctx.rev()))
+                output.append(pycompat.bytestr(ctx.rev()))
             taglist = ctx.tags()
 
         if default and not ui.quiet: