mercurial/hg.py
changeset 46932 dec31caf5fd6
parent 46931 d4e4ccb75f99
child 46934 ebb13f9a9ba8
equal deleted inserted replaced
46931:d4e4ccb75f99 46932:dec31caf5fd6
  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'))