patch: convert a UI message to bytes when editing a patch stable
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 11 Mar 2021 18:45:18 -0500
branchstable
changeset 46693 5f86765c9707
parent 46692 39f23d20ea47
child 46694 d6601547f22b
patch: convert a UI message to bytes when editing a patch Differential Revision: https://phab.mercurial-scm.org/D10178
mercurial/patch.py
--- a/mercurial/patch.py	Thu Mar 11 18:33:39 2021 -0500
+++ b/mercurial/patch.py	Thu Mar 11 18:45:18 2021 -0500
@@ -1210,7 +1210,7 @@
                 # 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.