Additional trailing newline in imported mq patch causes ParseError: "Errors while parsing patch: unknown patch content: '\n'"
Created originally on Bitbucket by edmorley (Ed Morley)
STR:
-
Import patch to mq.
-
In the "Revision Details" view, click the unapplied patch.
-
Try to look at the diff shown in the lower panel.
Expected:
Diff visible.
Actual:
Files list shows "ParseError".
Diff panel shows: "Errors while parsing patch: unknown patch content: '\n'"
Removing the additional newline at the end of the patch, hitting refresh & trying again solves the problem.
IMO Tortoise Hg should be more resilient to having an extra newline added, seeing as Mercurial handles them fine natively.