# HG changeset patch # User Matt Harbison # Date 2021-03-11 23:45:18 # Node ID 5f86765c9707f0f5f5349720aa43c6660c572421 # Parent 39f23d20ea47234bd2262c41dda0ccd362f7b2c6 patch: convert a UI message to bytes when editing a patch Differential Revision: https://phab.mercurial-scm.org/D10178 diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1210,7 +1210,7 @@ def filterpatch(ui, headers, match, oper # Patch comment based on the Git one (based on comment at end of # https://mercurial-scm.org/wiki/RecordExtension) phelp = b'---' + _( - """ + b""" To remove '-' lines, make them ' ' lines (context). To remove '+' lines, delete them. Lines starting with # will be removed from the patch.