equal
deleted
inserted
replaced
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 |