mercurial/scmutil.py
changeset 39836 f1d6021453c2
parent 39826 c31ce080eb75
child 39890 1c3f1491965f
equal deleted inserted replaced
39835:91d63fd58e7d 39836:f1d6021453c2
  1337     src = proc = None
  1337     src = proc = None
  1338     try:
  1338     try:
  1339         if spec.startswith("shell:"):
  1339         if spec.startswith("shell:"):
  1340             # external commands should be run relative to the repo root
  1340             # external commands should be run relative to the repo root
  1341             cmd = spec[6:]
  1341             cmd = spec[6:]
  1342             proc = subprocess.Popen(pycompat.rapply(procutil.tonativestr, cmd),
  1342             proc = subprocess.Popen(procutil.tonativestr(cmd),
  1343                                     shell=True, bufsize=-1,
  1343                                     shell=True, bufsize=-1,
  1344                                     close_fds=procutil.closefds,
  1344                                     close_fds=procutil.closefds,
  1345                                     stdout=subprocess.PIPE,
  1345                                     stdout=subprocess.PIPE,
  1346                                     cwd=procutil.tonativestr(repo.root))
  1346                                     cwd=procutil.tonativestr(repo.root))
  1347             src = proc.stdout
  1347             src = proc.stdout