upgrade: byteify an i18n message stable
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 21 Jul 2021 15:50:17 -0400
branchstable
changeset 47764 6b9ad3a0c348
parent 47763 76dccbbe73fd
child 47765 184d83ef2e59
upgrade: byteify an i18n message Differential Revision: https://phab.mercurial-scm.org/D11207
mercurial/upgrade_utils/engine.py
--- a/mercurial/upgrade_utils/engine.py	Wed Jul 21 15:34:35 2021 -0400
+++ b/mercurial/upgrade_utils/engine.py	Wed Jul 21 15:50:17 2021 -0400
@@ -66,7 +66,7 @@
         # drop the extension and the `data/` prefix
         path_part = path.rsplit(b'.', 1)[0].split(b'/', 1)
         if len(path_part) < 2:
-            msg = _('cannot recognize revlog from filename: %s')
+            msg = _(b'cannot recognize revlog from filename: %s')
             msg %= path
             raise error.Abort(msg)
         path = path_part[1]