histedit: byteify the help for the multifold action stable
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 05 Jan 2023 17:38:14 -0500
branchstable
changeset 49891 e90767a71dc0
parent 49871 a20e3758f53c
child 49892 2b8ead6bbb77
histedit: byteify the help for the multifold action While there's some allowance for str in `_()`, it's commented to be for "goofy unicode docstrings in test", so no idea how well that works, but it should at least come back as bytes. With HGPLAIN, however, the str isn't touched and is returned as-is, so this seems like a real bug.
hgext/histedit.py
--- a/hgext/histedit.py	Mon Jan 09 18:25:31 2023 +0400
+++ b/hgext/histedit.py	Thu Jan 05 17:38:14 2023 -0500
@@ -996,7 +996,7 @@
 @action(
     [b'_multifold'],
     _(
-        """fold subclass used for when multiple folds happen in a row
+        b"""fold subclass used for when multiple folds happen in a row
 
     We only want to fire the editor for the folded message once when
     (say) four changes are folded down into a single change. This is