Patchwork D11207: upgrade: byteify an i18n message

login
register
mail settings
Submitter phabricator
Date July 21, 2021, 8:07 p.m.
Message ID <differential-rev-PHID-DREV-dpfyqrqxjfxalq4jqzlh-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49520/
State Superseded
Headers show

Comments

phabricator - July 21, 2021, 8:07 p.m.
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11207

AFFECTED FILES
  mercurial/upgrade_utils/engine.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/upgrade_utils/engine.py b/mercurial/upgrade_utils/engine.py
--- a/mercurial/upgrade_utils/engine.py
+++ b/mercurial/upgrade_utils/engine.py
@@ -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]