equal
deleted
inserted
replaced
378 env['TZ'] = 'GMT' |
378 env['TZ'] = 'GMT' |
379 env["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
379 env["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
380 env['COLUMNS'] = '80' |
380 env['COLUMNS'] = '80' |
381 env['TERM'] = 'xterm' |
381 env['TERM'] = 'xterm' |
382 |
382 |
383 env['CDPATH'] = '' |
383 for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' + |
384 env['GREP_OPTIONS'] = '' |
384 'NO_PROXY').split(): |
385 env['http_proxy'] = '' |
385 if k in env: |
386 env['no_proxy'] = '' |
386 del env[k] |
387 env['NO_PROXY'] = '' |
|
388 |
387 |
389 # unset env related to hooks |
388 # unset env related to hooks |
390 for k in env.keys(): |
389 for k in env.keys(): |
391 if k.startswith('HG_'): |
390 if k.startswith('HG_'): |
392 del env[k] |
391 del env[k] |
393 if 'HG' in env: |
|
394 del env['HG'] |
|
395 if 'HGPROF' in env: |
|
396 del env['HGPROF'] |
|
397 |
392 |
398 return env |
393 return env |
399 |
394 |
400 def checktools(): |
395 def checktools(): |
401 # Before we go any further, check for pre-requisite tools |
396 # Before we go any further, check for pre-requisite tools |