hgext/extdiff.py
changeset 44867 8e8fd938ca07
parent 44808 aac816f584ad
child 45126 48c38018bd77
equal deleted inserted replaced
44866:5258bffdb1d6 44867:8e8fd938ca07
   231 
   231 
   232 def _systembackground(cmd, environ=None, cwd=None):
   232 def _systembackground(cmd, environ=None, cwd=None):
   233     ''' like 'procutil.system', but returns the Popen object directly
   233     ''' like 'procutil.system', but returns the Popen object directly
   234         so we don't have to wait on it.
   234         so we don't have to wait on it.
   235     '''
   235     '''
   236     cmd = procutil.quotecommand(cmd)
       
   237     env = procutil.shellenviron(environ)
   236     env = procutil.shellenviron(environ)
   238     proc = subprocess.Popen(
   237     proc = subprocess.Popen(
   239         procutil.tonativestr(cmd),
   238         procutil.tonativestr(cmd),
   240         shell=True,
   239         shell=True,
   241         close_fds=procutil.closefds,
   240         close_fds=procutil.closefds,