shelve: expurious newline after shelving patch hunk
Created originally on Bitbucket by wbruna (Wagner Bruna)
Shelving the first hunk of the attached patch (the one changing "widget tooltip") ends up writing a newline just before the following "diff --git...", showing then a parse error on the patch widget.
Apart from the extra newline, the resulting patch file seems ok.
Tested with 2.0.3 and stable tip (<<changeset 7562f0e8dc7b>>). "hg showconfig diff patch" shows:
{{{ diff.git=True diff.showfunc=True patch.eol=auto }}}
Attachments: ctx-commit.diffkbell-Unshelve-ParseError.zip