mercurial/hg.py
changeset 48240 607e9322fc89
parent 48173 1d70fb83ff4a
child 48241 7d1e60244561
equal deleted inserted replaced
48239:08630dd719f9 48240:607e9322fc89
  1259     Helper for incoming / gincoming.
  1259     Helper for incoming / gincoming.
  1260     displaychlist gets called with
  1260     displaychlist gets called with
  1261         (remoterepo, incomingchangesetlist, displayer) parameters,
  1261         (remoterepo, incomingchangesetlist, displayer) parameters,
  1262     and is supposed to contain only code that can't be unified.
  1262     and is supposed to contain only code that can't be unified.
  1263     """
  1263     """
  1264     srcs = urlutil.get_pull_paths(repo, ui, [source], opts.get(b'branch'))
  1264     srcs = urlutil.get_pull_paths(repo, ui, [source])
  1265     srcs = list(srcs)
  1265     srcs = list(srcs)
  1266     if len(srcs) != 1:
  1266     if len(srcs) != 1:
  1267         msg = _(b'for now, incoming supports only a single source, %d provided')
  1267         msg = _(b'for now, incoming supports only a single source, %d provided')
  1268         msg %= len(srcs)
  1268         msg %= len(srcs)
  1269         raise error.Abort(msg)
  1269         raise error.Abort(msg)
  1270     source, branches = srcs[0]
  1270     path = srcs[0]
       
  1271     source, branches = urlutil.parseurl(path.rawloc, opts.get(b'branch'))
  1271     if subpath is not None:
  1272     if subpath is not None:
  1272         subpath = urlutil.url(subpath)
  1273         subpath = urlutil.url(subpath)
  1273         if subpath.isabs():
  1274         if subpath.isabs():
  1274             source = bytes(subpath)
  1275             source = bytes(subpath)
  1275         else:
  1276         else: