Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/upgrade_utils/engine.py @ 47764:6b9ad3a0c348 stable
upgrade: byteify an i18n message
Differential Revision: https://phab.mercurial-scm.org/D11207
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 21 Jul 2021 15:50:17 -0400 |
parents | ff97e793ed36 |
children | 2174f54aab18 |
comparison
equal
deleted
inserted
replaced
47763:76dccbbe73fd | 47764:6b9ad3a0c348 |
---|---|
64 ) | 64 ) |
65 else: | 65 else: |
66 # drop the extension and the `data/` prefix | 66 # drop the extension and the `data/` prefix |
67 path_part = path.rsplit(b'.', 1)[0].split(b'/', 1) | 67 path_part = path.rsplit(b'.', 1)[0].split(b'/', 1) |
68 if len(path_part) < 2: | 68 if len(path_part) < 2: |
69 msg = _('cannot recognize revlog from filename: %s') | 69 msg = _(b'cannot recognize revlog from filename: %s') |
70 msg %= path | 70 msg %= path |
71 raise error.Abort(msg) | 71 raise error.Abort(msg) |
72 path = path_part[1] | 72 path = path_part[1] |
73 return filelog.filelog(repo.svfs, path) | 73 return filelog.filelog(repo.svfs, path) |
74 | 74 |