changeset 46475:f0982c76ef1b stable

cmdutil: add a missing byte prefix to string introduce in 976b26bdd0d8 The change is missing a the `b'foo'` prefix to make it a bytestring. This lead to a traceback in some third party extension. It is unclear to me why the Mercurial test pass without it. Differential Revision: https://phab.mercurial-scm.org/D9974
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 10 Feb 2021 00:11:46 +0100
parents dd926ce1de28
children 839cacdff919
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Jan 18 10:20:58 2021 +0100
+++ b/mercurial/cmdutil.py	Wed Feb 10 00:11:46 2021 +0100
@@ -3145,7 +3145,7 @@
         # avoid reporting something like "committed new head" when
         # recommitting old changesets, and issue a helpful warning
         # for most instances
-        repo.ui.warn(_("warning: commit already existed in the repository!\n"))
+        repo.ui.warn(_(b"warning: commit already existed in the repository!\n"))
     elif (
         not opts.get(b'amend')
         and bheads