# HG changeset patch # User Anton Shestakov # Date 2023-01-13 13:33:03 # Node ID f3e95e5a589514d3809f3f4a39bc594dae0f74ec # Parent 8f9fbc665928dd2f155081f202cf248cfba8f9de convert: replace repr() by pycompat.byterepr() in cvsps.py (issue6789) diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py --- a/hgext/convert/cvsps.py +++ b/hgext/convert/cvsps.py @@ -686,7 +686,10 @@ def createchangeset(ui, log, fuzz=60, me 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)