convert: replace repr() by pycompat.byterepr() in cvsps.py (issue6789) stable
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 13 Jan 2023 17:33:03 +0400
branchstable
changeset 49635 f3e95e5a5895
parent 49634 8f9fbc665928
child 49636 643312047e44
convert: replace repr() by pycompat.byterepr() in cvsps.py (issue6789)
hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Fri Jan 13 00:56:37 2023 +0400
+++ b/hgext/convert/cvsps.py	Fri Jan 13 17:33:03 2023 +0400
@@ -686,7 +686,10 @@
 
             files = set()
             if len(changesets) % 100 == 0:
-                t = b'%d %s' % (len(changesets), repr(e.comment)[1:-1])
+                t = b'%d %s' % (
+                    len(changesets),
+                    pycompat.byterepr(e.comment)[2:-1],
+                )
                 ui.status(stringutil.ellipsis(t, 80) + b'\n')
 
         c.entries.append(e)