Patchwork D10461: incoming: use bytes for an error message

login
register
mail settings
Submitter phabricator
Date April 18, 2021, 5:36 a.m.
Message ID <differential-rev-PHID-DREV-4uq6eowr56m6ttkd6g5b-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48778/
State Superseded
Headers show

Comments

phabricator - April 18, 2021, 5:36 a.m.
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Caught by pytype.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -1272,7 +1272,7 @@ 
     srcs = urlutil.get_pull_paths(repo, ui, [source], opts.get(b'branch'))
     srcs = list(srcs)
     if len(srcs) != 1:
-        msg = _('for now, incoming supports only a single source, %d provided')
+        msg = _(b'for now, incoming supports only a single source, %d provided')
         msg %= len(srcs)
         raise error.Abort(msg)
     source, branches = srcs[0]