Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
47004:3c8e4c6ec9bc | 47005:27602e030a1f |
---|---|
1270 and is supposed to contain only code that can't be unified. | 1270 and is supposed to contain only code that can't be unified. |
1271 """ | 1271 """ |
1272 srcs = urlutil.get_pull_paths(repo, ui, [source], opts.get(b'branch')) | 1272 srcs = urlutil.get_pull_paths(repo, ui, [source], opts.get(b'branch')) |
1273 srcs = list(srcs) | 1273 srcs = list(srcs) |
1274 if len(srcs) != 1: | 1274 if len(srcs) != 1: |
1275 msg = _('for now, incoming supports only a single source, %d provided') | 1275 msg = _(b'for now, incoming supports only a single source, %d provided') |
1276 msg %= len(srcs) | 1276 msg %= len(srcs) |
1277 raise error.Abort(msg) | 1277 raise error.Abort(msg) |
1278 source, branches = srcs[0] | 1278 source, branches = srcs[0] |
1279 if subpath is not None: | 1279 if subpath is not None: |
1280 subpath = urlutil.url(subpath) | 1280 subpath = urlutil.url(subpath) |