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