changeset 31472:55df8fa15b09

py3: make sure using bytes status char rather than ascii values 'MAR!?IC' is converted to their ascii values when slicing through it. This patch uses pycompat.iterbytestr() to get bytes value.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 16 Mar 2017 09:13:13 +0530
parents d1ce2124ec83
children 0e7a6279ff6e
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Mar 16 14:27:41 2017 -0700
+++ b/mercurial/commands.py	Thu Mar 16 09:13:13 2017 +0530
@@ -4754,7 +4754,7 @@
     stat = repo.status(node1, node2, m,
                        'ignored' in show, 'clean' in show, 'unknown' in show,
                        opts.get('subrepos'))
-    changestates = zip(states, 'MAR!?IC', stat)
+    changestates = zip(states, pycompat.iterbytestr('MAR!?IC'), stat)
 
     if (opts.get('all') or opts.get('copies')
         or ui.configbool('ui', 'statuscopies')) and not opts.get('no_status'):