equal
deleted
inserted
replaced
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"): |