Mercurial > public > mercurial-scm > hg-stable
diff hgext/convert/cvsps.py @ 49635: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 | d44e3c45f0e4 |
children | d718eddf01d9 |
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)