# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-03-16 03:43:13 # Node ID 55df8fa15b094361331058de93e18a565a494b4e # Parent d1ce2124ec83d3eef61aa0e6b7ef89c738a5d8fe 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. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4754,7 +4754,7 @@ def status(ui, repo, *pats, **opts): 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'):