# HG changeset patch # User Matt Harbison # Date 1576643615 18000 # Node ID 0671f0a19d9386697450f6689d65233bf40154e4 # Parent 6c8108274dc5694528e6a84d14e335828a81009e patch: fix header.__repr__() to not have `b''` prefixes in file names Spotted by Denis Laxalde. Differential Revision: https://phab.mercurial-scm.org/D7695 diff -r 6c8108274dc5 -r 0671f0a19d93 mercurial/patch.py --- a/mercurial/patch.py Wed Dec 18 11:11:40 2019 -0800 +++ b/mercurial/patch.py Tue Dec 17 23:33:35 2019 -0500 @@ -963,7 +963,9 @@ return self.files()[-1] def __repr__(self): - return '
' % (' '.join(map(repr, self.files()))) + return '
' % ( + ' '.join(pycompat.rapply(pycompat.fsdecode, self.files())) + ) def isnewfile(self): return any(self.newfile_re.match(h) for h in self.header)