changeset 49902:f3e95e5a5895 stable

convert: replace repr() by pycompat.byterepr() in cvsps.py (issue6789)
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 13 Jan 2023 17:33:03 +0400
parents 8f9fbc665928
children 643312047e44
files hgext/convert/cvsps.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)