changeset 35916 | d41e41d11574 |
parent 35888 | c8e2d6ed1f9e |
child 35918 | e35616bb6ede |
--- a/hgext/mq.py Mon Feb 05 13:01:35 2018 +0530 +++ b/hgext/mq.py Mon Feb 05 13:10:33 2018 +0530 @@ -396,12 +396,14 @@ self.comments.append('') self.comments.append(message) - def __str__(self): + def __bytes__(self): s = '\n'.join(self.comments).rstrip() if not s: return '' return s + '\n\n' + __str__ = encoding.strmethod(__bytes__) + def _delmsg(self): '''Remove existing message, keeping the rest of the comments fields. If comments contains 'subject: ', message will prepend