py3: use pycompat.bytestr() instead of str()
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 08 Jun 2017 00:51:46 +0530
changeset 32774 723de0ad3d8b
parent 32773 264b86cf2092
child 32775 3a57bfd369d4
py3: use pycompat.bytestr() instead of str()
mercurial/commands.py
--- 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: