changeset 41986 | 95e4ae86329f |
parent 41982 | f8c5225b9054 |
child 41987 | c1d83d916e85 |
--- a/mercurial/patch.py Tue Mar 19 16:36:59 2019 +0300 +++ b/mercurial/patch.py Tue Mar 12 14:58:35 2019 -0700 @@ -1117,7 +1117,8 @@ f = util.nativeeolwriter(os.fdopen(patchfd, r'wb')) chunk.header.write(f) chunk.write(f) - f.write('\n'.join(['# ' + i for i in phelp.splitlines()])) + f.write(''.join(['# ' + i + '\n' + for i in phelp.splitlines()])) f.close() # Start the editor and wait for it to complete editor = ui.geteditor()