setup.py
changeset 52640 24ee91ba9aa8
parent 52448 db1e56264aaa
child 52661 958d5c998505
equal deleted inserted replaced
52639:9db77d46de79 52640:24ee91ba9aa8
   254         try:
   254         try:
   255             retcode, out, err = runcmd(hgcmd + check_cmd, hgenv)
   255             retcode, out, err = runcmd(hgcmd + check_cmd, hgenv)
   256             res = (True, retcode, out, err)
   256             res = (True, retcode, out, err)
   257             if retcode == 0 and not filterhgerr(err):
   257             if retcode == 0 and not filterhgerr(err):
   258                 return True
   258                 return True
   259         except EnvironmentError as e:
   259         except OSError as e:
   260             res = (False, e)
   260             res = (False, e)
   261         attempts.append((cmd, res))
   261         attempts.append((cmd, res))
   262         return False
   262         return False
   263 
   263 
   264     if os.name != 'nt' or not os.path.exists("hg.exe"):
   264     if os.name != 'nt' or not os.path.exists("hg.exe"):