--- 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: