localrepo: byteify the requirements.DIRSTATE_TRACKED_HINT_Vx warning message stable
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 02 Nov 2022 16:46:46 -0400
branchstable
changeset 49540 bc2ecf08ae04
parent 49539 8076298b795a
child 49542 8251f7cc787d
localrepo: byteify the requirements.DIRSTATE_TRACKED_HINT_Vx warning message Flagged by PyCharm.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Oct 31 16:15:54 2022 +0000
+++ b/mercurial/localrepo.py	Wed Nov 02 16:46:46 2022 -0400
@@ -3721,8 +3721,10 @@
 
     if ui.configbool(b'format', b'use-dirstate-tracked-hint'):
         version = ui.configint(b'format', b'use-dirstate-tracked-hint.version')
-        msg = _("ignoring unknown tracked key version: %d\n")
-        hint = _("see `hg help config.format.use-dirstate-tracked-hint-version")
+        msg = _(b"ignoring unknown tracked key version: %d\n")
+        hint = _(
+            b"see `hg help config.format.use-dirstate-tracked-hint-version"
+        )
         if version != 1:
             ui.warn(msg % version, hint=hint)
         else: