changeset 49540:bc2ecf08ae04 stable

localrepo: byteify the requirements.DIRSTATE_TRACKED_HINT_Vx warning message Flagged by PyCharm.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 02 Nov 2022 16:46:46 -0400
parents 8076298b795a
children 8251f7cc787d
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: