Mercurial > hg
diff mercurial/hg.py @ 47005:27602e030a1f stable
incoming: use bytes for an error message
Caught by pytype.
Differential Revision: https://phab.mercurial-scm.org/D10461
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 18 Apr 2021 00:56:09 -0400 |
parents | 394cfc42c05c |
children | 7431f5ab0d2a 8be95673eb8a |
line wrap: on
line diff
--- a/mercurial/hg.py Wed Apr 21 10:58:42 2021 -0400 +++ b/mercurial/hg.py Sun Apr 18 00:56:09 2021 -0400 @@ -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]