Mercurial > hg > mercurial-source
changeset 33537: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 +++ b/mercurial/commands.py @@ -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: