mercurial/hg.py
changeset 47057 7431f5ab0d2a
parent 47012 d55b71393907
parent 47005 27602e030a1f
child 47233 bcafcd779d2e
equal deleted inserted replaced
47043:12450fbea288 47057:7431f5ab0d2a
  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)