histedit: byteify the help for the multifold action
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 05 Jan 2023 17:38:14 -0500
changeset 49940 8cb848601bec
parent 49939 ab32fd8412a7
child 49941 8b369bcbadf1
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	Thu Jan 05 17:31:11 2023 -0500
+++ 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