equal
deleted
inserted
replaced
389 return '0' |
389 return '0' |
390 if val is True: |
390 if val is True: |
391 return '1' |
391 return '1' |
392 return str(val) |
392 return str(val) |
393 origcmd = cmd |
393 origcmd = cmd |
394 if os.name == 'nt' and sys.version_info < (2, 7, 1): |
394 cmd = quotecommand(cmd) |
395 # Python versions since 2.7.1 do this extra quoting themselves |
|
396 cmd = '"%s"' % cmd |
|
397 env = dict(os.environ) |
395 env = dict(os.environ) |
398 env.update((k, py2shell(v)) for k, v in environ.iteritems()) |
396 env.update((k, py2shell(v)) for k, v in environ.iteritems()) |
399 env['HG'] = hgexecutable() |
397 env['HG'] = hgexecutable() |
400 if out is None: |
398 if out is None: |
401 rc = subprocess.call(cmd, shell=True, close_fds=closefds, |
399 rc = subprocess.call(cmd, shell=True, close_fds=closefds, |