--- a/mercurial/patch.py Tue Feb 04 12:07:37 2020 +0100
+++ b/mercurial/patch.py Thu Jan 02 11:04:18 2020 -0800
@@ -1090,6 +1090,7 @@
def filename(self):
return self.header.filename()
+ @encoding.strmethod
def __repr__(self):
return b'<hunk %r@%d>' % (self.filename(), self.fromline)