1261 Helper for incoming / gincoming. |
1261 Helper for incoming / gincoming. |
1262 displaychlist gets called with |
1262 displaychlist gets called with |
1263 (remoterepo, incomingchangesetlist, displayer) parameters, |
1263 (remoterepo, incomingchangesetlist, displayer) parameters, |
1264 and is supposed to contain only code that can't be unified. |
1264 and is supposed to contain only code that can't be unified. |
1265 """ |
1265 """ |
1266 source, branches = urlutil.parseurl( |
1266 srcs = urlutil.get_pull_paths(repo, ui, [source], opts.get(b'branch')) |
1267 ui.expandpath(source), opts.get(b'branch') |
1267 srcs = list(srcs) |
1268 ) |
1268 if len(srcs) != 1: |
|
1269 msg = _('for now, incoming supports only a single source, %d provided') |
|
1270 msg %= len(srcs) |
|
1271 raise error.Abort(msg) |
|
1272 source, branches = srcs[0] |
1269 other = peer(repo, opts, source) |
1273 other = peer(repo, opts, source) |
1270 cleanupfn = other.close |
1274 cleanupfn = other.close |
1271 try: |
1275 try: |
1272 ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(source)) |
1276 ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(source)) |
1273 revs, checkout = addbranchrevs(repo, other, branches, opts.get(b'rev')) |
1277 revs, checkout = addbranchrevs(repo, other, branches, opts.get(b'rev')) |