# HG changeset patch # User Yuya Nishihara # Date 1521720852 -32400 # Node ID bad90b80b3158e5eccf6c50f2632bb430cab39cc # Parent 736024df4498ccd3421c4840ade8d8785a458a3b util: adjust indent level in wrap() diff -r 736024df4498 -r bad90b80b315 mercurial/util.py --- a/mercurial/util.py Thu Mar 22 21:13:31 2018 +0900 +++ b/mercurial/util.py Thu Mar 22 21:14:12 2018 +0900 @@ -2883,11 +2883,11 @@ # adjust for weird terminal size width = max(78, maxindent + 1) line = line.decode(pycompat.sysstr(encoding.encoding), - pycompat.sysstr(encoding.encodingmode)) + pycompat.sysstr(encoding.encodingmode)) initindent = initindent.decode(pycompat.sysstr(encoding.encoding), - pycompat.sysstr(encoding.encodingmode)) + pycompat.sysstr(encoding.encodingmode)) hangindent = hangindent.decode(pycompat.sysstr(encoding.encoding), - pycompat.sysstr(encoding.encodingmode)) + pycompat.sysstr(encoding.encodingmode)) wrapper = _MBTextWrapper(width=width, initial_indent=initindent, subsequent_indent=hangindent)