D6124: patch: include newline at EOF in help text for interactive patch

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Mar 19 14:19:24 EDT 2019


pulkit added a comment.


  Amended the following in flight:
  
    diff --git a/mercurial/patch.py b/mercurial/patch.py
    --- a/mercurial/patch.py
    +++ b/mercurial/patch.py
    @@ -1117,7 +1117,8 @@ the hunk is left unchanged.
                         f = util.nativeeolwriter(os.fdopen(patchfd, r'wb'))
                         chunk.header.write(f)
                         chunk.write(f)
    -                    f.write(''.join(['# ' + i + '\n' 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()

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6124

To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list