mercurial/cmdutil.py
changeset 43942 6c8108274dc5
parent 43941 dfac25883dbf
child 44049 6cfaebb625d3
--- a/mercurial/cmdutil.py	Wed Dec 18 10:52:49 2019 -0800
+++ b/mercurial/cmdutil.py	Wed Dec 18 11:11:40 2019 -0800
@@ -267,7 +267,7 @@
     """
 
     def to_display(name):
-        return name.replace(b'_', b'-')
+        return pycompat.sysbytes(name).replace(b'_', b'-')
 
     previous = None
     for x in args: