changeset 49973 | a78dfb1ad60e |
parent 49292 | d44e3c45f0e4 |
child 50620 | 362d5a2ffd17 |
--- a/mercurial/mdiff.py Fri Jan 06 11:38:13 2023 -0500 +++ b/mercurial/mdiff.py Mon Jan 09 14:34:19 2023 -0500 @@ -94,6 +94,13 @@ opts.update(kwargs) return diffopts(**opts) + def __bytes__(self): + return b", ".join( + b"%s: %r" % (k, getattr(self, k)) for k in self.defaults + ) + + __str__ = encoding.strmethod(__bytes__) + defaultopts = diffopts()