comparison setup.py @ 34922:d643848635de stable

setup: remove duplicate assignment of HGRCPATH HGRCPATH is already set in localhgenv().
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Mon, 23 Oct 2017 21:30:59 -0500
parents ed5acd3fd7e1
children a6a322193a02
comparison
equal deleted inserted replaced
34921:76ba5b5a53f0 34922:d643848635de
247 if retcode == 0 and not filterhgerr(err): 247 if retcode == 0 and not filterhgerr(err):
248 return hgcommand(hgcmd, hgenv) 248 return hgcommand(hgcmd, hgenv)
249 249
250 # Fall back to trying the local hg installation. 250 # Fall back to trying the local hg installation.
251 hgenv = localhgenv() 251 hgenv = localhgenv()
252 # Don't source any system hgrc files when using the local hg.
253 hgenv['HGRCPATH'] = ''
254 hgcmd = [sys.executable, 'hg'] 252 hgcmd = [sys.executable, 'hg']
255 try: 253 try:
256 retcode, out, err = runcmd(hgcmd + check_cmd, hgenv) 254 retcode, out, err = runcmd(hgcmd + check_cmd, hgenv)
257 except EnvironmentError: 255 except EnvironmentError:
258 retcode = -1 256 retcode = -1